Comment install et use "make" dans Windows?

How can I install and use “make” in Windows?


Source : Stack Overflow [windows].)

make is a GNU command, so the only way vous pouvez get it on Windows is installing a Windows version like the one provided by GNUWin32. Anyway, il y a several options for getting that:

Directly download from Make for Windows

Using Chocolatey. First, vous devez install this package manager. Once installed, you simply need to install make (you may need to run it in an elevated/administrator invite de commandes):

choco install make

Another recommended option is installing a Windows Subsystem for Linux (WSL or WSL 2), so you’ll have a Linux distribution of your choice embedded in Windows 10, where you’ll be able to install make, gcc, and all the tools vous devez build C programs.

For older Windows versions (Microsoft Windows 2000, Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, or Windows 7 with msvcrt.dll) vous pouvez utiliser GnuWin32.

An outdated alternative was MinGW, but the project seems to be abandoned, so it’s better to go for one of the previous choices.