Windows 10 / 11
MSYS2 + GCC
- 01Download and install MSYS2 in its default C:\msys64 folder.
- 02Open the MSYS2 UCRT64 terminal—not the plain MSYS terminal.
- 03Update packages, then install the UCRT64 GCC toolchain.
- 04Add C:\msys64\ucrt64\bin to your user PATH and reopen the terminal.
pacman -Syu pacman -S --needed base-devel mingw-w64-ucrt-x86_64-toolchain g++ --version gdb --versionOfficial MSYS2 installation