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

2

14

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/

Whiplash answered 27/9, 2013 at 1:45 Comment(1)
So, check PATH and see if it contains the dir that contains nmake.exe.Amarillas
M
18

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

Merrymaker answered 26/10, 2015 at 19:5 Comment(1)
This worked for VS 2017 Enterprise Edition. Variable name: nmake. Path: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\binBarman
D
12

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 .

Dressler answered 27/9, 2013 at 1:49 Comment(2)
VS2012 is version 11.0 ERROR: Cannot determine the location of the VS Common Tools folder.Whiplash
After running vsvars32.bat: ERROR: Cannot determine the location of the VS Common Tools folderWhiplash

© 2022 - 2024 — McMap. All rights reserved.