VS2012: 'nmake' is not recognized as an in

2019-01-25 09:13发布

问题:

I tried VS2012 Native Tools, Cross Tools and Developers command prompt. And it does not recognize 'nmake'. It didn't work on VS2010 either.

On VS2008, it could not find depencies like windows.h

I want to build a static library curl for VS2012: http://quantcorner.wordpress.com/2012/04/08/using-libcurl-with-visual-c-2010/

回答1:

for visual studio 2015 community edition add the following path to your system environment path

C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin

in the above path there is the nmake command



回答2:

find the following dir, and run vsvars32.bat

   C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools

inside your DOS window, then try to run nmake

You can also click start -> All programs -> Microsoft Visual Studio 11.0 -> Visual studio tools -> VS2012 x86 native tools command .