To install the MinGW toolchain (Reference):
- Open MSYS2 shell from start menu
- Run
pacman -Sy pacmanto update the package database - Re-open the shell, run
pacman -Syuto update the package database and core system packages - Re-open the shell, run
pacman -Suto update the rest - For 32-bits, run
pacman -S mingw-w64-i686-toolchain - For 64 bits, run
pacman -S mingw-w64-x86_64-toolchain - Select which package to install, default is all
- You may also need make, run
pacman -S make