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.