Skip to content

Install MinGW toolchain

Adrian-George Bostan edited this page Sep 2, 2021 · 2 revisions

Install pre-built binaries

Download and run MinGW-W64 installer. Make sure to select the correct architecture.

MinGW-W64 install

Install using MSYS2 package manager

Download and install MSYS2 package manager to the default location.

MSYS2 package manager download

Open MSYS shell and install MinGW-W64.

pacman --noconfirm --needed -Sy bash pacman pacman-mirrors
pacman --noconfirm -Su
pacman --noconfirm -S mingw-w64-x86_64-gcc

MSYS2 install MinGW-W64

Add MSYS2 binary paths to your PATH environment variable.

C:\msys64\mingw64\bin
C:\msys64\usr\bin

Add MSYS2 binary paths to PATH environment variable

Clone this wiki locally