Mspdb140.dll is missing from your computer

I am trying to check if a Visual Studio compiler exists in my path. I have a vc / bin dir file for the path to the system environment. When I open the Windows console terminal, I try to call cl.exe from the console. I get the following message:

The program cannot start because mspdb140.dll is missing from your computer. Try reinstalling the program to fix this problem.

What exactly is this message worth? I tried to follow the instructions from this post , I ran the bat file, (furthremore I manually add the dll dir in the path). However, I get the same message.

+5
source share
1 answer

I have a vc / bin dir file on the path to the system environment

This, of course, is not enough. It is not clear what else you are doing. There are a number of additional environment variables that must be correctly cracked to ensure proper compilation and binding. The values โ€‹โ€‹of INCLUDE and LIB are critical, for example.

There is a .bat file that takes care of this, vc / vcvarsall.bat in the VS installation directory. You pass the architecture you want to target, by default x86. Make sure you use the CALL statement if you use the .bat file yourself and that you actually see that the variables are set correctly, say SET INCLUDE. Watch for a broken PATH variable, a very common occurrence on programmer machines. It is usually damaged by the winky installer.

VS installer creates shortcuts to run this .bat file. Used to mean "Visual Studio Command Prompt," may be "Developer Command Prompt." Pretty messy with Windows 8.

I personally just write to the VS Tools menu. Very comfortably. Use Tools> External Tools> Add Button. And fill out a dialog like this one:

  • Title = Command Line
  • Command = cmd.exe
  • Arguments = / k "C: \ Program Files (x86) \ Microsoft Visual Studio 14.0 \ VC \ vcvarsall.bat" "x86
  • Start Directory = $ (ProjectDir)

Tweak 14.0 to the version number of your VS version, VS2015. VS2013 = 12.0, VS2012 = 11.0, VS2010 = 10.0

+6
source

Source: https://habr.com/ru/post/1237092/


All Articles