MFC42D.LIB Linker Error

  • Thread starter Thread starter marathoner
  • Start date Start date
M

marathoner

I am in the process of converting a Visual C++ 6.0 project to Visual Studio
2005. The conversion is almost complete, but in the linking phase, I get
the error:

LINK : fatal error LNK1104: cannot open file 'mfc42d.lib'

It seems to be looking for a file from Visual C++ 6.0. I have checked the
project settings and can't find any reference to "mfc42d.lib".

Marathoner
 
I wasn't able to find the setting to exclude the old MFC libraries from
linking. Can you tell me how to find this option?

Marathoner
 
Thanks, that solved the problem.

Marathoner


Joe McCollough said:
Right click on the project in solution explorer, and select Properties.
In
the Properties dialog, select Configuration Properties - Linker - Input.
Add
the MFC 8 library to "Additional Dependencies" and add the MFC 4.2 library
to
Ignore Specific Library.
 
Back
Top