Today, compile ProgramWhen I encountered an affair, an error occurred, that is, vs2008 always prompts: Fatal error lnk1104: Unable to open the file "libc. lib ", and later I searched for a lot of information on the Internet and finally found out why...
If a project developed with a lower version of VC is obtained to a later version of VC development environment for compilation, the lnk1104 error may be triggered during the link. The solution is to ignore this library when linking. There are two solutions:
Project | properties | configuration properties | linker | input ignore specific Library: libc. Lib
The solution is as follows: Project-> properties-> Configuration properties-> linker-> input-> the name of the file libc. lib that cannot be opened in a specified library is ignored.
Or
Write in the Compiler Code:
# Pragma comment (linker, "/nodefaultlib: libc. lib ")
You just need to ignore this library...