Cannot open file "mfc42u. Lib" what is going on? How can I change the configuration options?

Source: Internet
Author: User
Solution 1:
Example of a foreignerCodePut it in VC 6.0 for compilation, and a fatal error lnk1104: cannot open file "mfc42u. lib" error is returned, which makes people unable to do anything. After searching on the Internet, the problem is that the default VC does not support Unicode, and this Code is exactly published according to Unicode and must be compiled using Unicode. The solution is simple. copy the file "mfc42u. lib and mfc42ud. lib, mfcs42u. lib and mfcs42ud. lib "Several Unicode-supported code" VC installation directory/vc98/mfc/lib ", and you do not need to reinstall it :).

 

 

Link: Fatal error lnk1104: cannot open file "mfc42u. lib" prompt
Indicates that the Unicode version is not installed when the VC is installed.

 

Solution 2:
Method 1: reinstall VC and select Full Install

Method 2: select a non-Unicode version in build for compilation

 

 

 

Solution 3:

In the set active configuation... sub-menu under the build menu, set the current configuration to Win32 release or Win32 Debug. Do not set it to Unicode release or Unicode debug.
This problem occurs when your compilation configuration is set to Unicode, while VC does not install the Unicode library by default during installation, so mfc42u. lib or mfc42u. dll cannot be found.

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.