The younger brother compiled the project transplanted from vc6 under vc2008, and the following occurs:
Link: Fatal error lnk1104: Unable to open the file "libc. lib"
If you search for information online, you only need to ignore libc. Lib.
I wonder why libc. Lib is not in the lib directory of vc2008, and why does the compiler go to libc. Lib,
In addition, libc. Lib is not required in the program code and project configuration, and even libc. Lib is not used.
It is said that there is a new library in vc2008 that replaces libc. Lib. Which library is it?
Why does the compiler search for libc. lib instead of the new alternative library?
Thank you for your help!
// ------------------------------------------------------ Solution ------------------------------------------------------------------
Method 1: A link error occurs when you re-compile a project with vsdnet2005. Now let's share the solution process. The error is as follows: Fatal error lnk1104: the file "libc. lib" cannot be opened ". The solution is as follows: Project-> properties-> Configuration properties-> linker-> input-> ignore certain libraries and write files that cannot be opened File Name libc. Lib; |
Method 2:
Add this sentence to stdafx. h.
# Pragma comment (linker, "/nodefaultlib: libc. lib ")
Method 3:
Next libc. Lib, or include in vc6.0