31

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

24

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.

| improve this answer | |
  • 1
    Isn't there a standalone nmake to download instead of installing the whole VC Express? – Pacerier Aug 3 '16 at 20:30
  • 1
    No, there is not a standalone download. NMake is part of Microsoft's build toolchain. Visual C++ Express (or Visual Studio Community) is just an easy way to get those tools. As others have mentioned you can also get it from the Windows SDK. – heavyd Aug 3 '16 at 23:17
  • 1
    The link is brokwn – lalo Apr 19 '19 at 22:15
22

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.

| improve this answer | |
  • 1
    This 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 2 '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 5 '17 at 13:56
  • By contrary, there is no nmakein the SDK folders: C:\Program Files (x86)\Windows Kits\10 – Liviu Apr 5 '17 at 13:59
5

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

| improve this answer | |
  • 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): web.archive.org/web/20120406195351/http://support.microsoft.com/… 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
4

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.

| improve this answer | |
  • 1
    upvoted - in 'Visual Studio Community 2015': \Microsoft Visual Studio 14.0\VC\bin\amd64\nmake.exe for x64 – bshea Jan 5 '17 at 1:28
2

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.

| improve this answer | |
0

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.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.