Albert Hendriks
Albert Hendriks

Reputation: 2145

mingw 64 ships without make.exe?

I had an old version of mingw on my computer that compiles programs to 32 bit. Now I want to compile to 64 bit, so I downloaded the new mingw installer. It tried uninstalling and installing several times with different versions (x86_64 option each time), but some files appear to be missing each time, at least make.exe. There's no make.exe in any of the mingw subfolders, only mingw32-make.exe in

C:\Program Files\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin

I'm relatively new to c++, so maybe I'm overlooking something? https://sourceforge.net/p/mingw-w64/wiki2/Make/ mentions you can copy make to the bin folder, but where do I copy it from?

Upvotes: 16

Views: 41019

Answers (3)

davenpcj
davenpcj

Reputation: 12684

My mingw64 installation was missing *make.exe, perhaps I'd never installed it. It's a part of msys2 though.

I found https://packages.msys2.org/packages/mingw-w64-x86_64-make

With install instructions pacman -S mingw-w64-x86_64-make From within the msys2/msys64 shell.

That made mingw32-make available within \msys64\mingw64\bin

There's also a package for make, pacman -S make

Upvotes: 3

Masum Serazi
Masum Serazi

Reputation: 11

You can create a symbolic link make.exe target to mingw32-make.exe, this way you can run make instead of mingw32-make. I found Git Bash is very useful for running Linux like tools on Windows.

Upvotes: 1

besc
besc

Reputation: 2647

mingw32-make.exe is the one you want to use. It is the version of make shipped with MinGW-w64. A plain make.exe does not exist. Don’t get confused by the name. You use mingw32-make.exe no matter if you want to produce 32bit or 64bit binaries.

Upvotes: 35

Related Questions