: Press Enter to accept the default "all" packages and type Y when asked to proceed with the installation. Step 3: Add MinGW to Windows Path Using GCC with MinGW - Visual Studio Code

: Type pacman -Syu and press Enter. If prompted to close the terminal, do so and reopen "MSYS2 UCRT64" from your Start menu.

: Enter the following command to install the full compiler suite: pacman -S --needed base-devel mingw-w64-ucrt-x86_64-toolchain .

The modern, recommended way to get MinGW-w64 is through , which provides the most up-to-date builds of GCC and other essential C++ tools.