Link: Fatal error lnk1104: another reason why the file "mfc71.lib" cannot be opened

Source: Internet
Author: User

Link
: Fatal error lnk1104: one reason why the file "mfc71.lib" cannot be opened

Http://blog.csdn.net/mxclxp/article/details/8161200

Refer:

Http://stackoverflow.com/questions/7851325/why-is-my-lib-forcing-the-inclusion-of-mfc40-lib

The following is another example --

[Environment]
Windows xp OS;
Visual Studio 2008;
It was originally developed by vs2003. An error occurred after migration to vs2008.

[Analysis]

Mfc71.lib is the MFC class library used by vs2003. Although both vs2003 and 2008 are installed on my machine, however, an error is reported because I cannot find mfc71.lib in the path of the vs2008 class library. Furthermore, we should not find mfc71.lib in the path of vs2008 class library, but use its corresponding mfc90.lib.


[Countermeasure]

Open project properties,
Linker> input> ignore specific Libraries Mfc71.lib; mfcs71.lib, Re-compile. The options in the corresponding. vcproj file are: ignoredefalibrlibrarynames = "mfc71.lib; mfcs71.lib"




[Note] Not every migration project will report the above error. It is not clear which setting of the migrated project makes it necessary for vs2008 to find the old MFC. If you can find it, it may be more appropriate to directly modify it.

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.