VC: cannot open file "mfc42u. Lib" solution

Source: Internet
Author: User

Problem: the error message "mfc42u. lib" cannot be found in the VC prompt (cannot open file "mfc42u. lib ")

Note:
Link: Fatal error lnk1104: cannot open file "mfc42u. lib" indicates that Unicode version is not installed when Vc is installed.

Solution summary:

Method 1:
Copy the files "mfc42u. lib", "mfc42ud. lib", "mfcs42u. lib", and "mfcs42ud. lib" from the installation disk of the VC to support Unicode.CodeUnder "VC installation directory/vc98/mfc/lib", you do not need to reinstall it :).

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

Method 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.

Method 4: reinstall VC and select Full Install

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.