Link:fatal Error Lnk1104:cannot Open file "Mfc42d.lib"

Source: Internet
Author: User

An MFC-based application was built on vc++6.0, and there was no error at compile time, but at the time of link there was an error:
Linking ...
Link:fatal Error Lnk1104:cannot Open file "Mfc42d.lib"
An error occurred while executing link.exe.
Calculator.exe-1 error (s), 0 warning (s)

Answer:

The error occurs primarily in the vc++6.0 version of the network spread, which occurs when debugging links to the MFC Wizard program. The main reason for this error is setting up the problem, but it cannot be resolved by modifying the settings only. And can not be resolved by re-installation. The correct solution is to copy and paste all files in the \ User installation directory \vc6cn\vc98\mfc\lib or user installation directory \vc6en\vc98\mfc\lib directory in the installation file to \ user installation directory \vc98\lib.
The main reason for this error is that the VC compiler is linked in the Microsoft Visual Studio\vc98\lib directory instead of the Microsoft Visual Studio\vc98\mfc\lib directory, so even if Microsoft visual Studio\vc98\mfc\lib under the Mfc42d.lib, also cannot link. link:fatal Error lnk1104:cannot Open file "Mfc42d.lib"

Link:fatal Error Lnk1104:cannot Open file "Mfc42d.lib"

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.