Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compiler error: LNK1104: cannot open file 'mfc42.lib' 1

Status
Not open for further replies.

imperialtimelord

Programmer
Mar 21, 2004
5
AU
1 really need some more experienced input on this one :)

I am in Visual C++ .NET Standard 2003. I am trying to compile a MFC VC++ Version 6 project.

I get this error, but version 7 does have MFC libraries.

" LNK1104: cannot open file 'mfc42.lib'"

What do l do? Should I be changing the project directories to point to VC++ 6 MFC include/library directories?

Thanks in advance.
 
I would suspect that you are right, though IIRC, my version of vs asks if I want to update VS6 projects to VS7.

If you don't have the libs in vour vs7 you could always try just copying them to your \lib folder, from vs6. Else, check that the project->properties->linker settings are correct
 
Just checked my VS7, and it doesn't have mfc42.lib, so I'd guess that the issue is in finding which of the v7 libs you need
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top