Public Servant | DSCI Security Leader | BITS Alumnus | Ethical Hacker & Skeptical Army Brat who demystifies FakeNews & preaches Logic.

" ABHINAV - A BLOG HOSTING INTERNET NUISANCES, ATTACKS & VULNERABILITIES "

Monday, January 16, 2012

SetUp Eclipse CDT using MinGW for Windows

The standard Eclipse CDT IDE (for C/C++) needs integration with the GNU toolchain, before you can start making your C/C++ projects in Eclipse (the world's best Open-source IDE, Integrated Development Environment). This includes GNU's make, gcc compiler, and gdb debugger utilities. For windows, MinGW and Cygwin are the two main platform choices for acquiring the toolchain. It is important to note the difference between them. Cygwin produces executables that use the Cygwin POSIX runtime. MinGW produces native Windows executables that do not require a separate runtime.

In this tutorial I'll show you how to setup Eclipse CDT using MinGW toolchain in a Windows Platform.


1. Install MingGW Offline Installer (mingw-6.3.exe , 7-zip Self-extracting Archive) in the C:\ drive.
       - The Installation Folder Structure would be like...
              "C:\MinGW"
                    *bin\
                    *include\
                    *lib\
                    *libexec\
                    *README_STL

2. Install Minimal SYStem MSYS Base (MSYS 1.0.11) in the default folder C:\msys\1.0
       - The Installation Folder Structure would be like...
              "C:\msys\1.0"
                    *bin\
                    *doc\
                    *etc\
                    *home\
                    *mingw\
                    *postinstall\
                    *share\
                    *uninstall\
                    *m.ico
                    *msys.bat
                    *msys.ico

3. Extract Eclipse CDT Helios SR2(eclipse-cpp-helios-SR2-win32.zip) in the 'Program Files' folder.
       - The Installation Folder Structure would be like...
              "C:\Program Files\eclipse"
                    *configuration\
                    *dropins\
                    *features\
                    *p2\
                    *plugins\
                    *readme\
                    *.eclipseproduct
                    *artifacts.xml
                    *eclipse.exe
                    *eclipse.ini
                    *eclipsec.exe
                    *epl-v10.html
                    *notice.html

4. Start Eclipse & enjoy creating C/C++ Projects in Eclipse.
Go Start Programming...

No comments:

Post a Comment