Why do I receive a LIBC.lib error when doing a MEX compilation in MATLAB 7.9 (R2009b)?

2 次查看(过去 30 天)
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'

采纳的回答

MathWorks Support Team
编辑:MathWorks Support Team 2021-6-21
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 个)

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

产品


版本

R2009b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by