Random thoughts shooting out of volatile mind
Installing GCC on Windows (MinGW)

I wanted to install the GCC on Windows to compile some Objective C programs. Though there is Dev C++ from BloodShed  developers but its development is froze back in 2005. So I planned to go with installing MinGW GCC on Windows XP. MinGW stands for Minimalist GNU for Windows. So I visited the wiki link of MinGW to find how to install GCC suite for Windows. There is manual installation but I suggest you to download the .exe file for installation. Well reason is its not easy to  configure manually the settings required for GCC on Windows, I tried but got confused as  to where to extract files and folders and which environment variables to set.
First download the MinGW-5.1.4.exe from this link . Then double click on the file click on next, select download and install option and click next.  Click next and you will be provided with list of compilers available, by default it will be installing only MinGW32 runtime. Select compilers which you want and click next. Software will try to download the required archive files but it may fail to and tell you to check your internet connection this is because software is still in proposed state. So in that case download the following packages manually
  • GNU Binutils
  • GCC Version 3
  • MINGW Runtime
  • Windows 32 API
This is the required software for gcc if you want other compilers you can dowload them from the above link and select those software in installation screen. Note: You should keep these softwares in the same directory as the MinGW-5.1.4.exe.
In this case it wont go for download directly go for installation without any download. Once its done just add the bin directory to your Path variable so that you can use gcc any where on the system. Default installation path will be  C:\MinGW.

Posted by: copyninja on Sunday, 26 July 2009

blog comments powered by Disqus
Fork me on GitHub