You are on page 1of 2

How to install the MinGW - g++ Compiler

Used to Compile C++ Programming Code

1.
2.

Go to the MinGW website - http://www.mingw.org/


Click on the Download Installer link in the top right of the page.

3.

Open the executable file that downloaded.

4.
5.

6.

If you get a Security Warning, Click the Run button.


Click Install.

Click Continue.

Installaion.

10. Then, click Installation in the Menu at the top and select Apply
Changes
11. Click Apply when asked if okay to proceed.

12. A window will appear to show that the new packages are
installing.

13. Then a window will appear that says Applying Scheduled


Changes

7.

The installer will start downloading the installation manager.

14. Click Close when it is complete.


15. Close out the Installation Manager. The MinGW g++ compiler
should now be installed.
8.
9.

When it is complete, click the Continue button.


The Installation Manager will now appear. Click on the
Checkbox beside mingw32-gcc-g++ and select Mark for

How to Set Up the Environment Variables

(Tell the Computer where to Find the Compiler)


1.

From the Start Menu, right click on Computer and select


Properties.

8.

Now you can test to see if you have everything installed &
configured correctly. Open up your Command Prompt window
by going to your start menu and type cmd in the search box and
hit enter.

9.

Type g++ and hit the Enter key.

10. You should receive an error that says g++: no input files. This
means it IS INSTALLED CORRECTLY.

2.

Click on Advanced System Settings

3.

The System Properties window appears with the Advanced tab


highlighted. Click on the Environment Variables button.

4.

Under System Variables (box in the bottom of this window),


double click the Path variable.

5.

Click inside the Variable value text box.

6.

Press the End key on your keyboard. You will now add the
following text at the end of this string of text:

; c:\MinGW\bin

7.

Then click OK.

11. If you get other errors, then please raise your hand for help.

You might also like