Why cannot I open the file "libc. lib "?

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.