12,065,060 members (42,179 online)
Title: C++ Development using eclipse IDE– Starters guide. Author: Boby Thomas P Email: firstname.lastname@example.org Environment: Eclipse - Win / Linux Keywords: Eclipse, CDT Level: Intermediate Description: This article will guide you to set up CDT plugin to eclipse for C++ development. Section C++ SubSection General
I was a fulltime user of windows operating systems and Microsoft visual studio products for c/c++ application development. Couple of month's back I started using Linux (Ubuntu breezy). I searched for a good IDE for C++ developments in Linux and found eclipse and its plug in architecture very powerful. I decided to start using Eclipse in Ubuntu and everything worked very well. Then I decided to use the same IDE for windows as well, which will make myself more comfortable with eclipse environment. But I faced few problems while setting up a C++ development environment with eclipse and so I decided to document the same so that others also can get benefit from what I have found out.
You will get a dialog where you can specify the eclipse CDT plug in path for installation.
Now eclipse will connect to the Internet location specified and install the required components for eclipse CDT. You need to be connected to Internet for this installation. Please read the document in the eclipse CDT location for offline installation. http://www.eclipse.org/cdt/
#Make file written by boby Thomas Pazheparampil #21-5-2006 INCLUDES = -I ./include CC = g++ -g -Wno-deprecated CFLAGS = -c $(INCLUDES) all : cmain cmain : cmain.o $(CC) cmain.o -o cmain cmain.o : cmain.cpp $(CC) $(CFLAGS) cmain.cpp clean : rm -f *.o
For running CDT from eclipse, you need to have the following tools.
You can download all these tools from www.MinGW.org. You have to download and install build tools (make), compiler (GCC) and debugger (GDB). You can find all these tools in the location www.cygwin.com also. But I recommend the usage of mingw.
Once you have all the supporting tools available, change few settings in eclipse.
Select "Project->Properties->C/C++ Make Project" and set proper debugger you have installed.
Now try debugging again. It should work fine. Wish you a happy coding with eclipse.
Eclipse is free software available in Windows as well as Linux. C++ applications developed in eclipse can be easily taken to any other platforms very easily. Also as a developer, if you are familiar with eclipse development environment, switching from Windows to Linux is no big deal.</body></html>