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
source share