C++ VS2012:“nmake”未被识别为内部或外部命令

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/19041439/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-27 22:27:05  来源:igfitidea点击:

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

c++curlvisual-studio-sdk

提问by user88888

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

我尝试了 VS2012 Native Tools、Cross Tools 和 Developers 命令提示符。它不识别'nmake'。它也不适用于 VS2010。

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

在 VS2008 上,它找不到像 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/

我想为 VS2012 构建一个静态库 curl:http://quantcorner.wordpress.com/2012/04/08/using-libcurl-with-visual-c-2010/

回答by Dimitris Kougioumtzis

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

对于 Visual Studio 2015 社区版,将以下路径添加到您的系统环境路径中

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

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

in the above path there is the nmake command

在上面的路径中有 nmake 命令

回答by CS Pei

find the following dir, and run vsvars32.bat

找到以下目录,然后运行 vsvars32.bat

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

inside your DOS window, then try to run nmake

在你的 DOS 窗口中,然后尝试运行 nmake

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

您也可以单击start-> All programs-> Microsoft Visual Studio 11.0-> Visual studio tools-> VS2012 x86 native tools command