Implementing a Flowchart With SVG and AngularJS - CodeProject
C++ Development using eclipse IDE– Starters guide - CodeProject
-
Upload
mohsinshiraz -
Category
Documents
-
view
26 -
download
5
description
Transcript of C++ Development using eclipse IDE– Starters guide - CodeProject
11/21/13 C++ Development using eclipse IDE– Starters guide - CodeProject
www.codeproject.com/Articles/14222/C-Development-using-eclipse-IDE-Starters-guide 1/6
10,218,114 members (56,144 online)
Sign in
home quick answers discussions features community help Search for articles, questions, tips
Articles » General Programming » Programming Tips » General
Article
Browse Code
Stats
Revisions
Alternatives
Comments &
Discussions (31)
About Article
C++ Development using
eclipse IDE– Starters guide
Type Article
Licence
First Posted 25 May 2006
Views 693,816
Downloads 2,212
Bookmarked 68 times
Windows Visual-Studio
Dev Intermediate
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
Windows Mobile, iPhone,
Android - Marketplace
Comparison
FITpro - Acceptance Test
Next
Sign Up to vote
5Tweet 2
C++ Development using eclipse IDE– Starters guideBy Boby Thomas P, 25 May 2006
Collapse | Copy Code
Title: C++ Development using eclipse IDE– Starters guide.Author: Boby Thomas PEmail: [email protected]: Eclipse - Win / LinuxKeywords: Eclipse, CDTLevel: IntermediateDescription: This article will guide you to set up CDT plugin to eclipse for C++ development.Section C++SubSection General
Download pdf version of this article - 200 Kb
C++ Development using eclipse IDE– Starters guide
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.
Setting up Eclipse CDT C++ IDE
Steps
1. Download and install latest java runtime environment. (You might be having one. If not install it). You can
find it in www.eclipse.org.
2. Download and extract eclipse to a suitable directory. You can find this also in eclipse website.
3. Launch eclipse (It will launch without any problems if you have Java runtime environment installed) and
add the CDT link in help -> Software updates -> find and install.
<formulas></formulas>
You will get a dialog where you can specify the eclipse CDT plug in path for installation.
4.48 (26 votes)
articles
11/21/13 C++ Development using eclipse IDE– Starters guide - CodeProject
www.codeproject.com/Articles/14222/C-Development-using-eclipse-IDE-Starters-guide 2/6
Micro Focus Visual COBOL
Step by Step Method to AccessWebservice from Android
Android. ImageView with SVGSupport
GeoGuide
Developing extension packagesfor Visual Studio2005/2008/2010/2012 using C#with real-life samples (1/6)
GUIDGen Developer StudioAddIn
Arduino Unleashed
Eclipse Protocol Error whenUpdating, or Installing ADT
Websphere Application Server6.1 .J2EE Client PART I
Integrate SVN withSourceAnywhere: Expand theVersion Control Features to theMost
Coding in the Cloud: Diving inwith Online IDEs
Related Research
Securing Your Private Keys asBest Practice for Code Signing
Certificate
Securing Your Software for theMobile Application Market
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.
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
#Make file written by boby Thomas Pazheparampil#21-5-2006INCLUDES = -I ./include CC = g++ -g -Wno-deprecatedCFLAGS = -c $(INCLUDES)
all : cmain cmain : cmain.o $(CC) cmain.o -o cmain cmain.o : cmain.cpp $(CC) $(CFLAGS) cmain.cpp clean : rm -f *.o
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.
Additional tools required for CDT
For running CDT from eclipse, you need to have the following tools.
Make tools for make process.
GNU compiler collection (GCC) for compilations.
GDB for debugging.
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.
11/21/13 C++ Development using eclipse IDE– Starters guide - CodeProject
www.codeproject.com/Articles/14222/C-Development-using-eclipse-IDE-Starters-guide 3/6
Once you have all the supporting tools available, change few settings in eclipse.
Select "Project->Properties->C/C++ Make Project->Binary Parser" and select Elf Parser and PE
windows parser.
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.
11/21/13 C++ Development using eclipse IDE– Starters guide - CodeProject
www.codeproject.com/Articles/14222/C-Development-using-eclipse-IDE-Starters-guide 4/6
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
About the Author
11/21/13 C++ Development using eclipse IDE– Starters guide - CodeProject
www.codeproject.com/Articles/14222/C-Development-using-eclipse-IDE-Starters-guide 5/6
Permalink | Advertise | Privacy | Mobile Web02 | 2.7.131119.1 | Last Updated 25 May 2006
Article Copyright 2006 by Boby Thomas PEverything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid
Boby Thomas PSoftware Developer (Senior) DWS
Australia
Check my homepage for more details - Click Here
Search this forum Go
Article Top
Comments and Discussions
You must Sign In to use this message board.
Profile popups Spacing Relaxed Noise Very High Layout Normal Per page 10 Update
First Prev Next
ho_khalaf 26-Nov-12 6:37
Sriram Raghavan 16-Nov-10 3:05
PKJenaX 4-Apr-12 15:46
dehlia 23-Jun-10 16:35
Danny Anafzahav 7-Apr-10 1:23
wuuhuu 2-Dec-09 9:08
wuuhuu 2-Dec-09 9:08
peretog 7-May-09 14:50
mibercicp 19-Dec-08 17:44
anticafe 22-Aug-09 17:29
Last Visit: 31-Dec-99 18:00 Last Update: 20-Nov-13 23:58 Refresh 1 2 3 4 Next »
General News Suggestion Question Bug Answer Joke Rant Admin
Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.
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....