Re: error LNK1104: cannot open file 'mfc42.lib'

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I just finished converting my Visual C++ 6.0 project to Visual Studio 2005.
Everything compiles fine, but when it tries to link I get the error: "LINK
:
fatal error LNK1104: cannot open file 'mfc42.lib'".

I have 2 questions on this:

1. Why am I getting this error since it worked fine in VC6.0?

2. Am I correct in assuming that the VS2005 mfc dll filename is
mfc80.dll?
If so why is it still trying to link to mfc42.dll?

VC6 shipped with MFC42.
VS2005 ships with MFC8. If your project tries to link against 42, you will
get that error.
You have to link against the new version.
My guess is that mfc42.lib is listed explicitly in your project settings.

--

Kind regards,
Bruno van Dooren
bruno_nos_pam_van_dooren@xxxxxxxxxxx
Remove only "_nos_pam"


.



Relevant Pages

  • BuildError
    ... EDITBIN: fatal error LNK1104: cannot open file 'F:\WINCE600\OSDesigns ... I did a sysgen again with same settings. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: BuildError
    ... EDITBIN: fatal error LNK1104: cannot open file 'F:\WINCE600\OSDesigns ... see there are so many target dlls that will be missing and that is ...
    (microsoft.public.windowsce.platbuilder)
  • RE: BuildError
    ... and libraries that came with your AK. ... EDITBIN: fatal error LNK1104: cannot open file 'F:\WINCE600\OSDesigns ...
    (microsoft.public.windowsce.platbuilder)
  • Re: error when linking a Fortran library to c++ code in VC8
    ... LINK: fatal error LNK1104: cannot open file 'libc.lib' ... the code was working fine when built using .NET2003. ... It should be a simple matter of switching to a multithreaded library to get ...
    (microsoft.public.dotnet.languages.vc)
  • Re: C++.NET project fatal error
    ... When it compiles, I get this error: ... fatal error LNK1256: ALINK operation failed ... You'll quickly find out what triggers the problem. ...
    (microsoft.public.dotnet.languages.vc)