Why do I receive a LIBC.lib error when doing a MEX compilation in MATLAB 7.9 (R2009b)?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
MathWorks Support Team
le 21 Mai 2010
Modifié(e) : MathWorks Support Team
le 21 Juin 2021
When compiling my C-file with MEX, I receive a LIBC.lib not found during compilation. I am able to compile a simple example like timestwo.c.
ERROR: LINK : fatal error LNK1104: cannot open file 'LIBC.lib'
Réponse acceptée
MathWorks Support Team
le 17 Juin 2021
Modifié(e) : MathWorks Support Team
le 21 Juin 2021
In MATLAB 7.9 (R2009b), the fatal error LNK1104: cannot open file 'LIBC.lib' relates to dependent libraries used in your C application.
This is a common issue when libraries were compiled using different versions of Visual Studio Compiler. This issue is discussed here:
One workaround is to place the LIBC.lib : "Project Property -> Configuration Properties -> Linker -> Input -> Ignore Specific Library"
"Ignore the LIBC.LIB" in Visual Studio so that it does not depend on a specific version of Visual Studio.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur MATLAB Compiler dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!