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.
2. Requirement
- MinGW
- Homepage : http://www.mingw.org/
- Download : http://sourceforge.net/projects/mingw/
- IDE Geany
- Homepage : http://www.geany.org/
- Download : http://www.geany.org/Download/Releases#windows
3. Installation
- Download MinGW online installer (Ex: mingw-get-setup.exe)
- Install MinGW, MinGW by clicking on the executable.
- After the installation is complete, click the Continue button.
- Select Basic Setup in the right menu, and then select package:
- mingw-developer-toolkit
- mingw32-base
- mingw32-gcc-g++
- mingw32-gcc-objc
- mysys-base
- Click the Installation menu and select Apply Changes.
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 :
- Click on the Start Button.
- Click on Control Panel.
- Click on System and Maintenance.
- Click on System.
- Click on Advanced System Setting.
- Click on Environmental Variables.
- Click on PATH to edit system wide variables.
- 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
- Click OK when finished.
- 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
- Open up a command line prompt and run the following command:
gcc --version
or
g++ --version
- If you will see a message the below , then your configuration works fine.
Good Luck ! <DnD>
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”
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
if you want to compile against the c language program, I suggest to install the Geany editor (http://www.geany.org/Download/Releases), another alternative : yu can use the netbeans editor (please visit : http://sidiq.mercubuana-yogya.ac.id/install-cc-compiler-for-netbeans-ide-windows-7-environment-and-ubuntu/).
Good Luck .. !