A. Sidiq Purnomo

Universitas Mercu Buana Yogyakarta

You are here: » How To Install MinGW on Microsoft Windows 7/8

How To Install MinGW on Microsoft Windows 7/8

1. Introduction

MinGW (Minimalist GNU For Windows) compilers provide access to the functionality of the Microsoft C runtime and some language-specific runtimes. MinGW includes:

  • A port of the GNU Compiler Collection (GCC), including C, C++, ADA and Fortran compilers.
  • GNU Binutils for Windows (assembler, linker, archive manager).
  • A command-line installer, with optional GUI front-end, (mingw-get) for MinGW and MSYS deployment on MS-Windows.
  • A GUI first-time setup tool (mingw-get-setup), to get you up and running with mingw-get.

(http://www.mingw.org/)

2. Requirement

  1. MinGW
  2. IDE Geany

3. Installation

  1. Download MinGW online installer (Ex: mingw-get-setup.exe)
  2. Install MinGW, MinGW by clicking on the executable.
  3. After the installation is complete, click the Continue button.
  4. Select Basic Setup in the right menu, and then select package:
    • mingw-developer-toolkit
    • mingw32-base
    • mingw32-gcc-g++
    • mingw32-gcc-objc
    • mysys-base
  5. Click the Installation menu and select Apply Changes.

    MinGW_3

4. Configuration

After MinGW successfully installed you will need to edit the Windows PATH on your Windows system to inform the system of the location of MinGW and MSYS. Edit the Windows Windows 7/8 PATH :

  1. Click on the Start Button.
  2. Click on Control Panel.
  3. Click on System and Maintenance.
  4. Click on System.
  5. Click on Advanced System Setting.
  6. Click on Environmental Variables.
  7. Click on PATH to edit system wide variables.
  8. Add the following line to your Windows system PATH or the location where you installed MinGW and MSYS. Type/Copy/Paste :
     ;C:\MinGW\bin;C:\msys\1.0\bin;C:\MinGW\msys\1.0\bin

    MinGW_1

  9. Click OK when finished.
  10. After the installation is complete, reeboot your Windows Operating System.
Note : Please use extreme care and caution when editing your Windows operating system PATH because if you delete the wrong information by accident you can cause your Windows operating system to not boot.

5. Test Your Configuration

  1. Open up a command line prompt and run the following command:
    gcc --version

    or

    g++ --version
  2. If you will see a message the below , then your configuration works fine.

    MinGW_2

Good Luck ! <DnD>

Print Friendly, PDF & Email
Posted by 2 Responses
 

Free Email Newsletter

Stay Updates with this Blog. Get Free email newsletter updates..

And then confirm your email subcription

   

2 Comments to “How To Install MinGW on Microsoft Windows 7/8”

  1. i just want to install MInGW compiler,

    after download n install MinGW , i must be d/l and install IDE Geany or not??

    bt when i try to d/l d’ IDE Geany, the link was not found.

    give me solution , please

    manunggalayom@gmail.com

Leave your comment here:

Secure * Time limit is exhausted. Please reload the CAPTCHA.

Sep
29
2014
 


Popular Posts