Share via


Problem with 64-bit builds on Visual Studio 2015, incorrect MSPDB140.DLL version

Question

Friday, January 12, 2018 10:50 AM

Hi,

64-bit builds that previously worked for me under Visual Studio 2015 are now failing for me:

Error LNK1101 incorrect MSPDB140.DLL version; recheck installation of this product

This happens with an new, unmodified 64-bit console application. A repair installation of Visual Studio made no difference.

There are multiple references to this issue on the internet, mostly relating to builds including boost.

This link is refered to in online discussions on this issue, but the content seems no longer available:

https://connect.microsoft.com/VisualStudio/feedback/details/1651822/incorrect-mspdb140-dll-version-picked-in-x86-x64-cross-tools-environment

Microsoft Support in the first instance were unable to turn up information on this and directed me here.

Any suggestions?

Thanks!

    Duncan

All replies (5)

Saturday, January 13, 2018 5:23 PM

If you create a new project in Visual Studio and try to build that for the x64 configuration?

Have you modified the VC++ Directories in the project settings, or did you override this using property sheets (either the Microsoft.Cpp.<platform>.User property sheet or one that you add yourself)?

This is a signature. Any samples given are not meant to have error checking or show best practices. They are meant to just illustrate a point. I may also give inefficient code or introduce some problems to discourage copy/paste coding. This is because the major point of my posts is to aid in the learning process.


Monday, January 15, 2018 6:19 AM

Hi Duncan,

Welcome to the MSDN forum.

Did you made any changes or install extensions for VS 2015 recently?

Please try to search the file MSPDB140.DLL under this location: C:\Program Files (x86)\Microsoft Visual Studio 14.0 and it should be installed next to link.exe.

If you compile it from the Developer Command Prompt and this issue persists or not? For the 86-bit, it works fine or not?

I found a similar issue and please have a look at this.

Best regards,

Sara

MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected]


Monday, January 15, 2018 9:25 AM

Hi Darran-

A new console app built for x64 shows the same link issue, both debug and release builds.

I'm not aware of any changes made to the environment, though that seems the most likely cause. I'll try to compare the environment with a better behaved machine.


Monday, January 15, 2018 9:56 AM

Hi Sara-

Thanks; I found that page, though the recommendations made no difference. I haven't seen mspdbsrv.exe running. I'm not sure the relevance of the environment variable to VS2015. A repair install didn't help. It doesn't seem related to debug versus normal builds.

I'm not aware of any changes or installs that might affect this, but I can't rule that out either, nor can I rule out any auto-update or auto-install affecting this. This does seem the most likely cause.

A command-line build having run vcvarsall x86_amd64 fails in the same way, but the same build after running vcvarsall amd64 succeeds. x86 build is also good.

Searching for link.exe and mspdb140.dll shows:

/drives/c/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/mspdb140.dll
/drives/c/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/link.exe
/drives/c/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/mspdb140.dll
/drives/c/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64_arm/link.exe
/drives/c/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64_x86/link.exe
/drives/c/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/link.exe
/drives/c/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/mspdb140.dll
/drives/c/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/link.exe
/drives/c/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/mspdb140.dll
/drives/c/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_arm/link.exe

Thanks

   Duncan


Tuesday, January 16, 2018 8:54 AM

Hi Duncan,

Thank you for your detail information.

Please try to use the Process Monitor tool to analysis and locate the MSPDB140.DLL that the error message used, then copy the fine one from a better behavior computer to replace it.

Best regards,

Sara

MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected]