Skip to main content

Most Visited Blog

How to Install minGW C++ compiler for Windows - Cyborg Coding

How to Install minGW C++ compiler for Windows - Cyborg Coding

Downloading

    

1. Open MinGW 

    • The following page will open in your browser (from the SOURCEFORGE web site).

How to Install minGW C++ compiler for Windows

2. Now click on Download button.
    • Your downloading will start soon, this compiler is about (84.5 kB) so it will not take so much time to download.
    • The file will appear as
How to Install minGW C++ compiler for Windows

3. Move this file to a more permanent location, so that you can install MinGW (and reinstall it later, if necessary).
4. Start the Installation instructions directly below.

Installation

1. Double-click the mingw-get-setup.exe How to Install minGW C++ compiler for Windows
    • The following window will pop-up.

How to Install minGW C++ compiler for Windows

2. click Install.
    • The following window will pop-up.

How to Install minGW C++ compiler for Windows

    • Here I'm installing MinGW in C:\MinGW directory. You can install this software anywhere, but I recommend you to installing it in default directory that's C:\MinGW. 

3. Click Continue.
    • The following window will pop-up, showing the downloading progress. It will take some time to complete this process (depend on your Internet Speed). After this, it should appear as follow

How to Install minGW C++ compiler for Windows

4. Click Continue.
    • The following pop-up window will appear. Ensure on the left that Basic Setup is highlighted.
     
How to Install minGW C++ compiler for Windows

    • Now mark check to each boxes given there, by clicking Left Click → Mark for Installation. 

How to Install minGW C++ compiler for Windows
    
6. After completing marking, under Installation Section → Apply Changes.

How to Install minGW C++ compiler for Windows

7. Click Apply Changes.
    • The following window will pop-up.

How to Install minGW C++ compiler for Windows

8. Click Apply.
    • The following window will pop-up, showing the downloading progress. 

How to Install minGW C++ compiler for Windows

    • After a while (hardly 10 min, depend upon your internet speed), it start executing files.
    • A few minutes later after that, the following pop-up window should appear.

How to Install minGW C++ compiler for Windows
    
9. Mark check to the box, it will automatically close the dialogue box.

10. Your MinGW Installation is complete! (You can close the MinGW software)

How to Install minGW C++ compiler for Windows

11. Now we have to set path of MinGW, to use it in our environment (PC/Computer).
    • For this open Search/Start and type "envi", select Edit the system environment variables.

How to Install minGW C++ compiler for Windows

12. Click Edit the system environment variables.
    • The following window will pop-up.

How to Install minGW C++ compiler for Windows

13. Click Environment variables.
    • The following window will pop-up.

How to Install minGW C++ compiler for Windows

14. Select Path under System variables and click Edit.
    • The following window will pop-up.

How to Install minGW C++ compiler for Windows

15. Click New Button.
    Now we have to paste our MinGW bin path.
    • In my case it is C:\MinGW\bin directory (Setup 2).

How to Install minGW C++ compiler for Windows

16. Click Move Up Button.
    Move this path under %SYSTEMROOT%\System32\WindowsPowerShell\v1.0\ path.

How to Install minGW C++ compiler for Windows

17. Click OK. (To all pop-up windows)
    • Path setting process is completed!

Checking for Installation

We can also check if our MinGW software is installed successfully or not.

18. Open CMD (Command Prompt)
    • Type g++ --version in it.

How to Install minGW C++ compiler for Windows

    • If it shows below message then your MinGW Compiler is successfully installed otherwise NOT.

How to Install minGW C++ compiler for Windows

Video




Comments