0

I'm attempting to migrate a solution file from VS 2005 to VS 2013. The majority of the projects within the solutions rebuilt just fine.

However, some of the projects are coming up with the error:

error LINK1104: cannot open file 'mfc80.lib'

I have searched for mfc80.lib on my computer and it does not exist.

enter image description here

I cannot follow the solution from here fatal error LNK1104: cannot open file 'gdi32.lib' because the file does not exist, therefore I cannot add its path in "Additional Library Directories".

I have:

  1. Deleted all the .obj and .lib files for the problematic project
  2. Ensured Visual C++ MFC MBCS Library for Visual Studio 2013 is installed
  3. Followed Error LNK1104 cannot open file ';.obj'

What else do I need to check?

Thanks.

Community
  • 1
  • 1
Pangu
  • 3,721
  • 11
  • 53
  • 120

1 Answers1

0

It appears your project is attempting to include mfc80.lib explicitly. This is the version that VS2005 used; you need mfc120.lib.

Also, double-check that none of your source has a declaration like the following: #define _MFC_FILENAME_VER

TriskalJM
  • 2,393
  • 1
  • 19
  • 20
  • I dont see `mfc90.lib`, I only see `mfc120.lib` in my `C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\atlmfc\lib\amd64` directory. I'm not familiar with VS, how do I point it to `mfc120.lib`? – Pangu Apr 07 '16 at 21:41
  • @Pangu I misread what version you were trying to link against. Answer still stands. – TriskalJM Apr 07 '16 at 21:44