Documente Academic
Documente Profesional
Documente Cultură
home
articles
quick answers
discussions
features
community
help
Next
Article Browse Code Stats Revisions Alternatives Comments & Discussions (31)
About Article
C++ Development using eclipse IDE Starters guide Type Licence First Posted Views Downloads Bookmarked 25 May 2006 693,816 2,212 68 times Article
T i t l e : C + +D e v e l o p m e n tu s i n ge c l i p s eI D E S t a r t e r sg u i d e . A u t h o r : B o b yT h o m a sP E m a i l : b o b y p t @ g m a i l . c o m E n v i r o n m e n t :E c l i p s e-W i n/L i n u x K e y w o r d s : E c l i p s e ,C D T L e v e l : I n t e r m e d i a t e D e s c r i p t i o n :T h i sa r t i c l ew i l lg u i d ey o ut os e tu pC D Tp l u g i nt oe c l i p s ef o rC + +d e v e l o p m e n t . S e c t i o n C + + S u b S e c t i o n G e n e r a l
Introduction
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.
Top News
2013 developer salary survey
Get the Insider News free each morning.
Related Videos
Related Articles
Richfaces Maven Project for Eclipse JavaEE IDE CPForAndroid and an Android Project Template Android vs Windows Phone List of freely available programming books Introduction to MonoDroid/Android Programming for .NET/C# Developers Getting Started with Kindle Fire Getting Started With Android Development
You will get a dialog where you can specify the eclipse CDT plug in path for installation.
www.codeproject.com/Articles/14222/C-Development-using-eclipse-IDE-Starters-guide
1/6
11/21/13
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/ 4. Now Launch File -> New -> Project and you will get a dialog like this where you can specify C++ project and continue with remaining stuffs.
Related Research
Securing Your Private Keys as Best Practice for Code Signing Certificate
5. Looks very easy right. Create a new project as usual write a hello world program. And compile it. It wont compile because eclipse expect you to supply the make file required for compilation. Write a simple make file as given below and keep it in the same directory where your c++ source files are kept.
Collapse | Copy Code
6. Now compile again, you will get a message like this "error launching external scanner info generator /GCC -E -P -v -dD eclipse CDT". The reason for this error is, the GCC compiler required for compiling the source files are not present in the windows path location. You confirm this by typing "gcc --version" in command prompt. If you get a message saying command not found, you can be sure that GCC compiler is not available.
www.codeproject.com/Articles/14222/C-Development-using-eclipse-IDE-Starters-guide
2/6
11/21/13
Select "Project->Properties->C/C++ Make Project" and set proper debugger you have installed.
Select "Run->Debug->Debugger" and select "GDB debugger " and locate the path to gdb debugger.
www.codeproject.com/Articles/14222/C-Development-using-eclipse-IDE-Starters-guide
3/6
11/21/13
Select "Run->Create Make Target" and set a proper make command you need to execute for different make operations.
Now try debugging again. It should work fine. Wish you a happy coding with eclipse.
Conclusion
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>
License
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below. A list of licenses authors might use can be found here
www.codeproject.com/Articles/14222/C-Development-using-eclipse-IDE-Starters-guide
4/6
11/21/13
Boby Thomas P
Software Developer (Senior) DWS Australia
eclipse c\c++ How to link .lib files to CDT Re: How to link .lib files to CDT An updated guide available can I build AST with gcc only able to compile on a different architecture? My vote of 1 This is soooooooo old... Thanks a lot EASIER: JUST DOWNLOAD ECLIPSE C++ IDE and go to HELP, CONTENTS.... Re: EASIER: JUST DOWNLOAD ECLIPSE C++ IDE and go to HELP, CONTENTS....
Last Visit: 31-Dec-99 18:00 General News Last Update: 20-Nov-13 23:58 Suggestion Question Bug Answer
26-Nov-12 6:37 16-Nov-10 3:05 4-Apr-12 15:46 23-Jun-10 16:35 7-Apr-10 1:23
anticafe
22-Aug-09 17:29
1 2 3 4 Next
Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.
Permalink | Advertise | Privacy | Mobile Web02 | 2.7.131119.1 | Last Updated 25 May 2006
Article Copyright 2006 by Boby Thomas P Everything else Copyright CodeProject, 1999-2013 Terms of Use
www.codeproject.com/Articles/14222/C-Development-using-eclipse-IDE-Starters-guide
5/6
11/21/13
www.codeproject.com/Articles/14222/C-Development-using-eclipse-IDE-Starters-guide
6/6