I'm trying to compile a Perl source and I can't seem to find a version of nmake that works with Windows 7 64 bit. I've searched all over Microsoft's website and my Googlefu seems to be failing me. Can I use a different compiler- if so suggestions/resources? I'm a native Linux user so pardon my ignorance
8 Answers
NMake is part of Microsoft's build tools for building C++ projects. You can get nmake as well as the MSVC++ compiler by downloading Visual C++ Express. Visual C++ Express runs perfectly fine on Windows 7.
- 62,847
- 18
- 155
- 177
-
1Isn't there a standalone nmake to download instead of installing the whole VC Express? – Pacerier Aug 03 '16 at 20:30
-
1No, there is not a standalone download. NMake is part of Microsoft's build toolchain. Visual C++ Express (or [Visual Studio Community](https://www.visualstudio.com/en-us/products/visual-studio-community-vs.aspx)) is just an easy way to get those tools. As [others have mentioned](http://superuser.com/a/217246/820) you can also get it from the Windows SDK. – heavyd Aug 03 '16 at 23:17
-
1The link is brokwn – lalo Apr 19 '19 at 22:15
-
Don't forget to add it to the PATH, for me it was inside of c:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\bin\Hostx64\x64 ✍️ – Thomas Gotwig Sep 21 '20 at 08:09
-
1LMAO you want me to install 4 GB of crap just to get nmake.exe – MartinThurn Jul 17 '21 at 13:31
To get the 64 bit version of nmake (for Windows 7) you can also install the Windows SDK. It will install nmake.exe to C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin on Windows 7 without prompting for an alternate directory.
- 477
- 1
- 3
- 11
- 249
- 2
- 2
-
1This answer is a few years old, but I just installed the latest Windows SDK and do not have that directory. The closest I have is: `C:\Program Files (x86)\Microsoft Visual Studio 8\VC` which contains `vcpackages` which contains a few dlls. – Blink Aug 02 '16 at 13:15
-
Maybe it comes with Visual Studio, not with Windows SDK as I find indeed nmkae in `C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin`(14.0 stands for VS 2015) – Liviu Apr 05 '17 at 13:56
-
By contrary, there is no `nmake`in the SDK folders: `C:\Program Files (x86)\Windows Kits\10` – Liviu Apr 05 '17 at 13:59
The x64 version of nmake.exe is located in the VC\bin\amd64 subdirectory. The 32-bit version of nmake.exe is located in VC\bin.
If you open up the Visual Studio x64 Command Prompt
VS2013 x64 Native Tools Command Prompt
the paths should be set up to find the x64 versions of tools. You can also type "where nmake.exe" to find the version you are looking for.
- 151
- 1
- 3
-
1upvoted - in 'Visual Studio Community 2015': \Microsoft Visual Studio 14.0\VC\bin\amd64\nmake.exe for x64 – B. Shea Jan 05 '17 at 01:28
A version of nmake which is compatible with Windows 7 also comes with xampp: http://www.apachefriends.org/en/xampp-windows.html Or you can try here: http://johnbokma.com/perl/make-for-windows.html
- 151
- 2
- 3
-
The johnbokma link does not work in 2019. More precisely its link to a MS KB goes to a "page not found" in the MS site – franksands Jan 28 '19 at 13:30
-
Queue up "Queen - Who wants to live forever", I have excavated a working Wayback Machine link for the Microsoft Knowledge Base article in question (it was for Windows95): https://web.archive.org/web/20120406195351/http://support.microsoft.com/default.aspx?scid=kb;en-us;Q132084 I think that JohnBokma link was itself the main help for any issues I had around undesrtanding nmake for Windows... hopefully it helps though. – bcmoney Jan 30 '19 at 11:18
-
@bcmoney, I doubt it works on modern Windows. It's a 16-bit application intended for running on Windows 95. On my 64-bit W10 it throws an error dialog: "Unsupported 16-Bit Application", ––– quote starts ––– The program or feature "\??\c:\Users\saukrs\Downloads\Nmake15.exe" cannot start or run due to incompatibity with 64-bit versions of Windows. Please contact the software vendor to ask if a 64-bit Windows compatible version is available. ––– quote ends ––– Eg.: https://i.stack.imgur.com/cJHBm.png – saulius2 Feb 11 '23 at 11:57
Nmake doesn't come natively in Windows 10, but you could include it without installing the complete Visual Studio by installing Microsoft Visual C++ Build Tools.
when complete, navigate to this folder to find Nmake binaries C:\Program Files (x86)\Microsoft Visual Studio x.0\VC\bin
Finally, add it to windows path in control panel.
- 21
- 2
-
link to install microsoft tools, https://technet.microsoft.com/en-us/dd9y37ha(v=vs.99) – DarckBlezzer Sep 26 '19 at 15:14
To have native tools as nmake 64 bit on Visual Studio Express or 2013 Visual Build 2013 and for Visual Studio 64 bit 2008 cross tools command promt as well.
Download 2013 Visual Studio Ultimate update 5 DVD or Web Installer: https://www.visualstudio.com/vs/older-downloads/
Install only C++ Foundation edition from this installer with custom installing.
Also remember to use withing visual command; vcvars64.bat in 12/VC/BIN/amd64 to inintialize the PATH= function, if you use, to see if you have it, try to use in Visual 64 bit tools command this command;
where nmake.exe
If this command does not find nmake.exe and you still have it in amd64 folder. Run this command; in folder Microsoft Visual Studio 12.0 for Micros~1.0. Depenidng on if VC12 was installed first, then Micros~1.0 can be 2.0.
C:\progra~2\Micros~1.0\VC\vcvarsall amd64
Having a hard use, make a .bat file for each time loading in windows\ for own fast start. You have to use cd.. , to run a .bat not in system32.
- 25
- 3
On my machine the x64 Microsoft (R) Program Maintenance Utility Version 14.16.27038.0 nmake.exe is in
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64
- 546
- 3
- 10
- 36
I want to add something to the other answers. I installed visual studio 2022 in an external hard drive, and the Cmake.exe is in a different folder than others mentioned:
D:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin
- 105
- 4