VS2012: 'nmake' is not recognized as an internal or external command

有些话、适合烂在心里 提交于 2019-11-27 23:38:11

问题


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 .



来源:https://stackoverflow.com/questions/19041439/vs2012-nmake-is-not-recognized-as-an-internal-or-external-command

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!