Install GCC, GFortran, and GNU Make on Windows via MinGW

The GNU compilers and GNU Make are available using MinGW for native Windows:

  1. Download MinGW-w64 compiler (gcc, g++ gfortran)
  2. Install to C:\mingw using:

    • Architecture: x86_64
    • Threads: posix
    • Exception: seh

    This also installs GNU make at C:\mingw\bin\mingw32-make.exe.

  3. add c:\mingw\bin to your PATH under Control Panel → System → Advanced.

  4. For convenience, symlink make to mingw32-make:

    cd C:\mingw\bin
    mklink make.exe mingw32-make.exe

CMake on Windows is often used as well.


  • Windows Subsystem for Linux gives near-native Linux functionality in a Windows window. It’s much easier to do certain development tasks in WSL.
  • MSYS2 is a more powerful way to use MinGW, giving newer packages and a wider selection of programs.