To install the MinGW toolchain (Reference):
- Open MSYS2 shell from start menu
- Run
pacman -Sy pacman
to update the package database - Re-open the shell, run
pacman -Syu
to update the package database and core system packages - Re-open the shell, run
pacman -Su
to 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