Download Mingw Msys — [upd]
Now that MSYS2 is updated, you can install the actual C++ compiler and tools. Most modern users want the 64-bit version.
Once the download is complete, follow these steps to install the base system: Run the installer. download mingw msys
Choose an installation folder. The default is usually C:\msys64. Avoid using paths with spaces. Click through the prompts to complete the installation. Now that MSYS2 is updated, you can install
To use the compiler from a standard Windows Command Prompt (CMD) or PowerShell, you must add the MinGW binary folder to your system's PATH. Now that MSYS2 is updated
Reopen MSYS2 from your Start menu (search for "MSYS2 MSYS").