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 http://www.mingw.org/
  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 SourceForge.net web site).

mingw download page

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

mingw-get-setup-exe

5. Click  mingw-get-setup.exe

 

6. Click install

mingw-click-install

7. Click continue

 

mingw-click-continue

8. Click continue

mingw-installation-manager-setup-tool

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.

mingw-check-all-options

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

mingw-apply-changes

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.

 

select-advanced-system-settings

  • 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.

select-environt-variables

select-path-click-edit

  • 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.

set-path

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

open-cmd-type-gcc


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


Partner Sites

VideoToGifs.com

EasyOnlineConverter.com

SqliteTutorials.com





6 Comments

  1. This tutorial no longer works!!
    This project has stopped
    this is the message file that gets downloaded-
    This folder contains files that were contributed either internal or
    external but are currently not maintained and no plans by the
    maintainers to maintain them. You must download the files in this
    directory and extract them to the appropriate directories manually. It
    is therefore recommended that you do not use these files but they are
    provided for historical reasons.

    If you wish to take a package and maintain it then please use
    mingw-users@lists.sourceforge.net to convey that fact and the
    maintainers will be in touch with you. Contributed packages must
    conform to MinGW package standards by using mgwport to do the
    packaging.

Leave a Reply

Your email address will not be published.


*