Update the MSYS2 environment with pacman -Syu
and then install the toolchain package group with pacman -S mingw-w64-ucrt-x86_64-toolchain
.
This will install all of the build tools including gcc
, g++
, and mingw32-make
, plus the libstdc
and libstdc++
libraries.
Finally, add %USERPROFILE%\msys64\ucrt64\bin
to the %PATH%
environment variable.
Optionally, add %USERPROFILE%\msys64\ucrt64\bin
to the %PATH%
environment variable to get access to the tools from the normal Windows Command Prompt or PowerShell.
A profile can be added to Windows Terminal with the following settings: