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"