-
Download MinGW
- Go to the MinGW download link and download the ZIP file.
-
Extract the ZIP File
- After downloading, extract the contents of the ZIP file to a folder of your choice.
- Move the extracted folder to
C:\(e.g.,C:\winlibs-x86_64-posix-seh-gcc-14.2.0-mingw-w64msvcrt-12.0.0-r3).
-
Find
gcc.exe- Open the extracted folder and navigate to the
binfolder. - The location of
gcc.exewill be:C:\winlibs-x86_64-posix-seh-gcc-14.2.0-mingw-w64msvcrt-12.0.0-r3\mingw64\bin\gcc.exe
- Open the extracted folder and navigate to the
-
Add
gcc.exeto the SystemPATHVariable- Open the Start menu, type
sysdm.cpl, and press Enter. - In the System Properties window, go to the Advanced tab and click on Environment Variables.
- In the System variables section, find and select the
Pathvariable, then click Edit. - Click New and paste the path to the
binfolder:C:\winlibs-x86_64-posix-seh-gcc-14.2.0-mingw-w64msvcrt-12.0.0-r3\mingw64\bin - Click OK to save.
- Open the Start menu, type
-
Verify the Configuration
- Open a new Command Prompt (
Win + R, typecmd, and press Enter). - Type:
gcc --version
- If everything is set up correctly, you should see the GCC version details.
- Open a new Command Prompt (
Last active
October 29, 2025 09:11
-
-
Save TheTharz/71ef68c8cf2ba64f9bb6c25cc950e2da to your computer and use it in GitHub Desktop.
Installing and setting up mingw in windows
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you! comping from unix this was much needed!