How To install MinGW on Windows 10 (GCC & G++)

MinGW, a contraction of “Minimalist GNU for Windows”, is a minimalist development environment for native Microsoft Windows applications.

Downloading MinGW

  1. open
  2. Click Download Button as shown in the picture below.

dowinload mingw exe

3. As soon as you click download button on mingw website   The following page will open in your browser (from the web site).

mingw download page

4. The following exe file will be downloaded with the name  mingw-get-setup.exe


5. Click  mingw-get-setup.exe


6. Click install


7. Click continue



8. Click continue


mingw-on-installation-setup-complete-click continue

9. The following pop-up window will appear. Pleas make sure that you selected all the check-boxes. e.g. mingw32-base, mingw32-gcc=g++, msys-base and so on.


10. Click on Installation > Apply Changes as shown in the picture below.


11. wait for the process to complete. once you see successful installation message close the window. Click Close.

12. Now we will set environment variable to use gcc and g++ command from terminal.

Windows 10 and Windows 8
  1. In Search, search for and then select: System (Control Panel)
  2. Click the Advanced system settings link.



  • Click Environment Variables. In the section System Variables, find the PATH environment variable and select it. Click Edit. If the PATH environment variable does not exist, click New.



  • In the Edit System Variable (or New System Variable) window, specify the value of the PATH environment variable.
  • Copy C:\MinGW\bin . 
  • Click OK.
  • Close all remaining windows by clicking OK.


  • Reopen Command prompt window, and type gcc. if you see the following output as shown in the picture below the mingw is installed successfully.


Video : How To install MinGW on Windows 10 (GCC & G++)

Partner Sites

Stuff I use to make videos

Windows notebook –

Apple MacBook Pro –

Desktop -

Microphone –

notebook mouse –

Screen Recording Software – Camtasia