35

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

manyxcxi
  • 508

8 Answers8

28

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.

heavyd
  • 65,321
25

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.

5

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.

Spl2nky
  • 151
5

A version of nmake which is compatible with Windows 7 also comes with xampp: https://sourceforge.net/projects/xampp/files/XAMPP%20Windows/ Or you can try here: http://johnbokma.com/perl/make-for-windows.html

bcmoney
  • 151
3

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.

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.

Dealazer
  • 35
  • 3
0

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
Foad
  • 892
  • 4
  • 19
  • 54
0

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