Fatal error lnk1104: Unable to open the file "libc. lib"

Source: Internet
Author: User

Today, compileProgramWhen 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 CompilerCode:

# Pragma comment (linker, "/nodefaultlib: libc. lib ")

You just need to ignore this library...

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.