-
Download the latest version of MinGW-w64 (“UCRT runtime” / “GCC + MinGW-w64”)
Extract the ZIP file to C: so that you have all the files available in the folder: C:\mingw64
Search for “env” in the Start menu, select “Edit the system environment variables,” click “Environment Variables” and choose to edit the “PATH” user variable
Add the following new variable to PATH: C:\mingw64\bin
Press the Windows key + r. In the Run box, type cmd, and then click Ok. This opens the Command Prompt window
Check that gcc runs correctly (execute the command gcc --version, for example)