lnk1104: cannot open 'LIBC.lib' LINK
Here are several possible solutions:
This may due to code generation conflict. If your
libc.lib
's thread support is different then your project's settings, this may be causing the problem. If so, right clickproject
, then go toproperties->C++->code generation->Runtime Library
and change the value toMulti-threaded(MT)
.Your
libc.lib
may not support multi threading. Right clickproject
, then go toproperties->Linker->Input->Additional Dependencies
and changelibc.lib
tolibcmt.lib
Your application statically link multiple copies of the same library. Right click
project
, then go toproperties->Linker->Input->Ignore Specific Library
and addlibc.lib
Maybe your project needs this lib, but your system doesn't have it. In that case, you have to download the
.lib
file from Microsoft and add the path of where you downloaded it by right clickingproject
, then going toproperties->Linker->General->Additional Library directories
.
I had this problem in MS VC++ 2012 Express with Windows SDK 7.1.
I found this solution from the DISLIN developers :
(i) in MS VC++\Project\<YourProject> Properties pull-down...
(ii) <YourProject>Property Pages\Ignore Specific Default Libraries : libc.lib
(iii) <YourProject>Property Pages\Additional Dependencies\Edit : libcmt.lib
Bingo!