Download MSYS2 and follow the instructions: https://www.msys2.org/
- Run installer
- Start msys2
- pacman -Syu
- If needed, close MSYS2, run it again.
- Update the rest with: pacman -Su
Install MinGW64 https://stackoverflow.com/questions/30069830/how-to-install-mingw-w64-and-msys2
- pacman -S mingw-w64-x86_64-gcc (32-bit: pacman -S mingw-w64-i686-gcc)