472,783 Members | 955 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,783 software developers and data experts.

C++ Programming and Development under Eclipse?


I have been using Eclipse for a few weeks, and IMO there is no better
IDE.

Since my experience has been so productive -and hence satisfactory- in
Java, I would like to use the same IDE environment for C++
programming, the targets would be both Unix and Windows.

If there is any Eclipse/C++ developer out there, could you share your
recommendations, tips, opinions, etc.

I suppose I would have to attach somehow the appropriate compiler (gcc
or MS VC++) to the IDE. Will I then be able to use things like code
completion (press a dot and menu appears)?

The next question would be nirvana for me: Since I never use Unix/
Linux GUIs (just terminal/CLI remote access) but I develop under *ix,
I have been stuck to 'vi' forever. Remote XWindows is not feasible
because I may be in a country with no so great Internet bandwidth. So:
is it possible to run Eclipse on my local WinXP box, while driving the
gcc/gdb in a remote (across the Atlantic) server?

TIA,

-Ramon

Nov 23 '07 #1
15 3605
On Nov 23, 3:25 am, Ramon F Herrera <ra...@conexus.netwrote:
I have been using Eclipse for a few weeks, and IMO there is no better
IDE.

Since my experience has been so productive -and hence satisfactory- in
Java, I would like to use the same IDE environment for C++
programming, the targets would be both Unix and Windows.

If there is any Eclipse/C++ developer out there, could you share your
recommendations, tips, opinions, etc.

I suppose I would have to attach somehow the appropriate compiler (gcc
or MS VC++) to the IDE. Will I then be able to use things like code
completion (press a dot and menu appears)?

The next question would be nirvana for me: Since I never use Unix/
Linux GUIs (just terminal/CLI remote access) but I develop under *ix,
I have been stuck to 'vi' forever. Remote XWindows is not feasible
because I may be in a country with no so great Internet bandwidth. So:
is it possible to run Eclipse on my local WinXP box, while driving the
gcc/gdb in a remote (across the Atlantic) server?

TIA,

-Ramon

The Eclipse CDT (C/C++ Development Toolkit)

"The Eclipse CDT is an Eclipse plug-in that transforms Eclipse into a
powerful C/C++ IDE. It was designed to bring many of the great
features Eclipse enjoyed by Java developers to C/C++ developers, such
as project management, integrated debugging, class wizards, automated
builds, syntax coloring, and code completion. When Eclipse is used as
a Java IDE, it leverages and integrates with the JDK. Similarly, the
CDT leverages and integrates with standard C/C++ tools, such as g++,
make, and GDB. This has lead to it becoming very popular on Linux,
where those tools are readily available and used for most C++
development. The CDT can be set up on Windows to use the same tools.
There is also an ongoing effort to get the CDT to work with
Microsoft's C++ tools to make it even more attractive to Windows C++
developers."

[...]

http://www.ibm.com/developerworks/op...cdt/index.html

-RFH

Nov 23 '07 #2
http://www.eclipse.org/downloads/
http://www.eclipse.org/downloads/dow...all2-win32.zip
Search for eclipse europa.

Regards,
Ravi.

On Nov 23, 1:27 pm, Ramon F Herrera <ra...@conexus.netwrote:
On Nov 23, 3:25 am, Ramon F Herrera <ra...@conexus.netwrote:
I have been using Eclipse for a few weeks, and IMO there is no better
IDE.
Since my experience has been so productive -and hence satisfactory- in
Java, I would like to use the same IDE environment for C++
programming, the targets would be both Unix and Windows.
If there is any Eclipse/C++ developer out there, could you share your
recommendations, tips, opinions, etc.
I suppose I would have to attach somehow the appropriate compiler (gcc
or MS VC++) to the IDE. Will I then be able to use things like code
completion (press a dot and menu appears)?
The next question would be nirvana for me: Since I never use Unix/
Linux GUIs (just terminal/CLI remote access) but I develop under *ix,
I have been stuck to 'vi' forever. Remote XWindows is not feasible
because I may be in a country with no so great Internet bandwidth. So:
is it possible to run Eclipse on my local WinXP box, while driving the
gcc/gdb in a remote (across the Atlantic) server?
TIA,
-Ramon

The Eclipse CDT (C/C++ Development Toolkit)

"The Eclipse CDT is an Eclipse plug-in that transforms Eclipse into a
powerful C/C++ IDE. It was designed to bring many of the great
features Eclipse enjoyed by Java developers to C/C++ developers, such
as project management, integrated debugging, class wizards, automated
builds, syntax coloring, and code completion. When Eclipse is used as
a Java IDE, it leverages and integrates with the JDK. Similarly, the
CDT leverages and integrates with standard C/C++ tools, such as g++,
make, and GDB. This has lead to it becoming very popular on Linux,
where those tools are readily available and used for most C++
development. The CDT can be set up on Windows to use the same tools.
There is also an ongoing effort to get the CDT to work with
Microsoft's C++ tools to make it even more attractive to Windows C++
developers."

[...]

http://www.ibm.com/developerworks/op...-eclipse-stlcd...

-RFH
Nov 23 '07 #3
Ramon F Herrera wrote:
I have been using Eclipse for a few weeks, and IMO there is no better
IDE.

Since my experience has been so productive -and hence satisfactory- in
Java, I would like to use the same IDE environment for C++
programming, the targets would be both Unix and Windows.

If there is any Eclipse/C++ developer out there, could you share your
recommendations, tips, opinions, etc.

I suppose I would have to attach somehow the appropriate compiler (gcc
or MS VC++) to the IDE. Will I then be able to use things like code
completion (press a dot and menu appears)?

The next question would be nirvana for me: Since I never use Unix/
Linux GUIs (just terminal/CLI remote access) but I develop under *ix,
I have been stuck to 'vi' forever. Remote XWindows is not feasible
because I may be in a country with no so great Internet bandwidth. So:
is it possible to run Eclipse on my local WinXP box, while driving the
gcc/gdb in a remote (across the Atlantic) server?
I my opinion Eclipse is not nearly as good for C++ as for Java, but ...

Eclipse C++ uses makefile's, so it is relative easy to support
any compiler. There are a couple of different ways to set that up.

Starting point:

http://dingfelder.wordpress.com/2007...e-eclipse-cdt/

Regarding the remote build solution, then I think I would edit and make
a Win32 build in the local Eclipse, commit changes to a CVS server and
in a terminal windows to the remote Unix box update from CVS and build.
A low tech solution, but it will work.

Arne
Nov 23 '07 #4
Lew
Ramon F Herrera wrote:
>I have been using Eclipse for a few weeks, and IMO there is no better
IDE.
Arne Vajhøj wrote:
I my opinion Eclipse is not nearly as good for C++ as for Java, but ...
Actually, emacs makes a really good environment for Gnu C++ programming. It
integrates with the Gnu debugger, gdb, understands makefiles, has syntax
coloring, and synchronizes the source display with the debugger display.

I wouldn't say "there is no better IDE" than emacs for g++ and co., but it's
awfully darn good.

--
Lew
Nov 23 '07 #5
On Nov 23, 1:04 pm, Arne Vajhj <a...@vajhoej.dkwrote:
Ramon F Herrera wrote:
I have been using Eclipse for a few weeks, and IMO there is no better
IDE.
Since my experience has been so productive -and hence satisfactory- in
Java, I would like to use the same IDE environment for C++
programming, the targets would be both Unix and Windows.
If there is any Eclipse/C++ developer out there, could you share your
recommendations, tips, opinions, etc.
I suppose I would have to attach somehow the appropriate compiler (gcc
or MS VC++) to the IDE. Will I then be able to use things like code
completion (press a dot and menu appears)?
The next question would be nirvana for me: Since I never use Unix/
Linux GUIs (just terminal/CLI remote access) but I develop under *ix,
I have been stuck to 'vi' forever. Remote XWindows is not feasible
because I may be in a country with no so great Internet bandwidth. So:
is it possible to run Eclipse on my local WinXP box, while driving the
gcc/gdb in a remote (across the Atlantic) server?
I my opinion Eclipse is not nearly as good for C++ as for Java, but ...
Could you elaborate, Arne (or anyone familiar with the environment)?

Are those C++ shortcomings (compared with Java on Eclipse) intrinsic,
i.e., something that cannot be fixed (based on the fact that Eclipse
is written in Java, for instance), or are they a reflection of the
support for Java being much more mature? Should we expect the CDT to
reach some day the same level as the JDT?

-Ramon

Nov 23 '07 #6
On 2007-11-23 11:09:05 -0800, Ramon F Herrera <ra***@conexus.netsaid:
On Nov 23, 1:04 pm, Arne Vajhj <a...@vajhoej.dkwrote:
>I my opinion Eclipse is not nearly as good for C++ as for Java, but ...

Could you elaborate, Arne (or anyone familiar with the environment)?

Are those C++ shortcomings (compared with Java on Eclipse) intrinsic,
i.e., something that cannot be fixed (based on the fact that Eclipse
is written in Java, for instance), or are they a reflection of the
support for Java being much more mature? Should we expect the CDT to
reach some day the same level as the JDT?
It's both.

Part of the problem, as I understand it, is that C and C++ are hard
languages to parse and manipulate. Macros, constructed types (int,
const int, int *, const int *, int *const, const int *const, ...),
typedefs, the exact rules about implicit conversions, templates, and a
few syntactic holdovers from the 70s make it almost impossible to
implement the refactoring and code browsing tools as completely as they
exist for Java. Compiled C is also much harder to work with than Java
..class files, primarily because every platform has a slightly (or not
so slightly) different set of calling conventions, symbol naming
conventions, and binary file formats.

That's not to say it's impossible to write a good IDE for C or C++.
Apple[0], Microsoft[1], and various others have been doing it for ages,
and as Lew noted GNU Emacs makes a very good C "IDE" in combination
with various other GNU utilities. However, each of these tools was
designed for a single environment. A "cross-platform" C IDE is a much,
much harder problem.

-Owen

[0] Who have finally added refactoring tools for Objective-C to XCode:
<http://bast.lionsanctuary.net/~owen/images/refactoring>
[1] Who, for all their faults, have some pretty good code comprehension
and manipulation tools in Visual C++ now, too.

Nov 24 '07 #7
Ramon F Herrera wrote:
On Nov 23, 1:04 pm, Arne Vajhj <a...@vajhoej.dkwrote:
>Ramon F Herrera wrote:
I my opinion Eclipse is not nearly as good for C++ as for Java, but ...

Could you elaborate, Arne (or anyone familiar with the environment)?
No refactoring (except rename).

No incremental compile.

Is the two most obvious things I have noticed.
Are those C++ shortcomings (compared with Java on Eclipse) intrinsic,
i.e., something that cannot be fixed (based on the fact that Eclipse
is written in Java, for instance), or are they a reflection of the
support for Java being much more mature? Should we expect the CDT to
reach some day the same level as the JDT?
The refactoring can obviously be done. And if enough people are willing
to spend time improving, then it will improve over time. CDT is much
better now than it was let us say 2 years ago.

To get incremental compile, then I think they will need their own
compiler or integrate deeply with an existing one. I don't think
that will happen.

Arne
Nov 24 '07 #8
Jun
On Nov 23, 8:25 am, Ramon F Herrera <ra...@conexus.netwrote:
I have been using Eclipse for a few weeks, and IMO there is no better
IDE.

Since my experience has been so productive -and hence satisfactory- in
Java, I would like to use the same IDE environment for C++
programming, the targets would be both Unix and Windows.

If there is any Eclipse/C++ developer out there, could you share your
recommendations, tips, opinions, etc.

I suppose I would have to attach somehow the appropriate compiler (gcc
or MS VC++) to the IDE. Will I then be able to use things like code
completion (press a dot and menu appears)?

The next question would be nirvana for me: Since I never use Unix/
Linux GUIs (just terminal/CLI remote access) but I develop under *ix,
I have been stuck to 'vi' forever. Remote XWindows is not feasible
because I may be in a country with no so great Internet bandwidth. So:
is it possible to run Eclipse on my local WinXP box, while driving the
gcc/gdb in a remote (across the Atlantic) server?

TIA,

-Ramon
One very important thing :
disable the "Auto activation" in preferences, when u're working on
Linux.
Nov 24 '07 #9
Does anyone experience trubles with MinGW/GDB under Windows? I can't
used it with Eclipse it just dies encountering a bug in program
being debugged?
Another problem is inability to create runtime profile.

I wonder where those problems only in my installation or in general?

Elipse Version: 3.2.2 Build id: M20070212-1330
Version: 3.2.2
Build id: M20070212-1330

CDT 3.1.2.2007.02.150621
Nov 25 '07 #10
On Nov 25, 9:19 am, Andrey Ryabov <andrey_rya...@bk.ruwrote:
Does anyone experience trubles with MinGW/GDB under Windows? I can't
used it with Eclipse it just dies encountering a bug in program
being debugged?
Another problem is inability to create runtime profile.

I wonder where those problems only in my installation or in general?

Elipse Version: 3.2.2 Build id: M20070212-1330
Version: 3.2.2
Build id: M20070212-1330

CDT 3.1.2.2007.02.150621
Andrey:

There is one (and only one) area in which I decided not to fight
Microsoft: compilers. Their VC++ product is very good and reasonably
priced (including a freebie version). I tried to stick to standards-
based, non-M$ compilers such as Borland's but I gave up. I use a
couple of SDKs when I develop for Windows native, one of them being
the Acrobat SDK. Adobe tells you in unequivocal terms: "The only
programming environment supported is Visual Studio 2005". Talk about
the meaning of the "P" initial in PDF!

-Ramon

Nov 25 '07 #11
On Nov 25, 6:18 pm, Ramon F Herrera <ra...@conexus.netwrote:
On Nov 25, 9:19 am, Andrey Ryabov <andrey_rya...@bk.ruwrote:
Does anyone experience trubles with MinGW/GDB under Windows? I can't
used it with Eclipse it just dies encountering a bug in program
being debugged?
Another problem is inability to create runtime profile.
I wonder where those problems only in my installation or in general?
Elipse Version: 3.2.2 Build id: M20070212-1330
Version: 3.2.2
Build id: M20070212-1330
CDT 3.1.2.2007.02.150621

Andrey:

There is one (and only one) area in which I decided not to fight
Microsoft: compilers. Their VC++ product is very good and reasonably
priced (including a freebie version). I tried to stick to standards-
based, non-M$ compilers such as Borland's but I gave up. I use a
couple of SDKs when I develop for Windows native, one of them being
the Acrobat SDK. Adobe tells you in unequivocal terms: "The only
programming environment supported is Visual Studio 2005". Talk about
the meaning of the "P" initial in PDF!

-Ramon
Yes, and that I was always afraid of...
Microsoft definitely has faster compiler, safer stl implementation and
better debuger.
But I'm too fascinated by idea of having one IDE for Java, C++, Python
and etc.

Nov 26 '07 #12
On Nov 26, 2:55 pm, Andrey Ryabov <andrey_rya...@bk.ruwrote:
On Nov 25, 6:18 pm, Ramon F Herrera <ra...@conexus.netwrote:
On Nov 25, 9:19 am, Andrey Ryabov <andrey_rya...@bk.ruwrote:
Does anyone experience trubles with MinGW/GDB under Windows? I can't
used it with Eclipse it just dies encountering a bug in program
being debugged?
Another problem is inability to create runtime profile.
I wonder where those problems only in my installation or in general?
Elipse Version: 3.2.2 Build id: M20070212-1330
Version: 3.2.2
Build id: M20070212-1330
CDT 3.1.2.2007.02.150621
Andrey:
There is one (and only one) area in which I decided not to fight
Microsoft: compilers. Their VC++ product is very good and reasonably
priced (including a freebie version). I tried to stick to standards-
based, non-M$ compilers such as Borland's but I gave up. I use a
couple of SDKs when I develop for Windows native, one of them being
the Acrobat SDK. Adobe tells you in unequivocal terms: "The only
programming environment supported is Visual Studio 2005". Talk about
the meaning of the "P" initial in PDF!
-Ramon

Yes, and that I was always afraid of...
Microsoft definitely has faster compiler, safer stl implementation and
better debuger.
But I'm too fascinated by idea of having one IDE for Java, C++, Python
and etc.
I've decided to update CDT to v4 and give my feed back here.
Nov 26 '07 #13
There is one (and only one) area in which I decided not to fight
Microsoft: compilers. Their VC++ product is very good and reasonably
priced (including a freebie version). I tried to stick to standards-
based, non-M$ compilers such as Borland's but I gave up. I use a
couple of SDKs when I develop for Windows native, one of them being
the Acrobat SDK. Adobe tells you in unequivocal terms: "The only
programming environment supported is Visual Studio 2005". Talk about
the meaning of the "P" initial in PDF!

-Ramon
I've just tried eclipse distribution for C++ with CDT 4.
It seems to work mutch better then the one with CDT 3.3, and looks by
far more attractive than MVS 2005.

http://www.eclipse.org/downloads/dow...all2-win32.zip

It would be realy good if eclipse cdt supported microsoft compiller as
tool-chain.

By the way, As far as I knew Acrobat SDK is not about PDF but about
Acrobat Reader. That's why it supports only Visual Studio.

Nov 26 '07 #14
I used to be a CDT user, but Netbeans C/C++ support (on the Netbeans 6
release candidate) is really outperforming eclipse in stability and
productivity... I think it's worth giving it a try.

On Nov 23, 5:25 am, Ramon F Herrera <ra...@conexus.netwrote:
I have been using Eclipse for a few weeks, and IMO there is no better
IDE.

Since my experience has been so productive -and hence satisfactory- in
Java, I would like to use the same IDE environment for C++
programming, the targets would be both Unix and Windows.

If there is any Eclipse/C++ developer out there, could you share your
recommendations, tips, opinions, etc.

I suppose I would have to attach somehow the appropriate compiler (gcc
or MS VC++) to the IDE. Will I then be able to use things like code
completion (press a dot and menu appears)?

The next question would be nirvana for me: Since I never use Unix/
Linux GUIs (just terminal/CLI remote access) but I develop under *ix,
I have been stuck to 'vi' forever. Remote XWindows is not feasible
because I may be in a country with no so great Internet bandwidth. So:
is it possible to run Eclipse on my local WinXP box, while driving the
gcc/gdb in a remote (across the Atlantic) server?

TIA,

-Ramon
Nov 26 '07 #15
On Nov 26, 3:50 pm, guigouz <guig...@gmail.comwrote:
I used to be a CDT user, but Netbeans C/C++ support (on the Netbeans 6
release candidate) is really outperforming eclipse in stability and
productivity... I think it's worth giving it a try.
That is exactly the same case as the OpenOffice plugin, which works
quite well on NetBeans. Let's not forget that both OpenOffice and
NetBeans have Sun DNA. The Eclipse plugin for OpenOffice, OTOH leaves
much to be desired.

What platform are you running NB/C++ on? Windows or U*ix? I tend to
chicken away from "release candidates" but am planning to take NB6 for
a spin.

-Ramon

Nov 26 '07 #16

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Mohan | last post by:
I have an application programming (accounting system) which is developed in VB 6.I want to port this application into web enviroment. I don't know which language is best suit to write this...
9
by: Buster | last post by:
Hi, im about to start learning how to program in JAVA 2 and was wondering what software i should buy to learn the language. I have downloaded the software development kit 1.4 but find the DOS...
4
by: gamaron | last post by:
Summary --------- I'm looking for a C++ IDE. If I'm going to learn something, I prefer it to be free-of-charge (preferably and open-source base), extensible (read: language independent,...
1
by: santa19992000 | last post by:
I downloaded Eclipse IDE onto PC using Cross compiler for ARM based board, I wanted to know this Eclipse is based on what OS?. If I write some prog using Eclipse and downloaded into ARM, Does it...
4
by: Richard Levasseur | last post by:
(Forewarning, most of these problems and solutions come from being the only developer in a 1 server department with no budget, few resources, unresponsive IT, and non-technical managers, so thats...
20
markmcgookin
by: markmcgookin | last post by:
Hi Folks, This has really been annoying me, I read somewhere in my VB book about a type of development, like where you wonder if something is passing a value to another element of your program,...
7
by: R.A.M. | last post by:
Hello, I have started learning PHP5. I would like to programme in Windows XP and Fedora Linux. I have found two IDEs for PHP (if I understood correctly): - Eclipse PDT, - EasyEclipse for PHP....
1
by: ssaraceni | last post by:
Hi, I'm programming an eclipse plugin. I need to show a dialog window when user select an item on context menu over the editor. I execute the user action into run method of class MyAction that...
2
by: dissectcode2 | last post by:
Hi - I am on a Linux machine programming in C and I am currently using Emacs. I am comfortable with it, and I like the shortcuts but I am also like using IDEs like I do for Java development (Eclipse...
0
by: Rina0 | last post by:
Cybersecurity engineering is a specialized field that focuses on the design, development, and implementation of systems, processes, and technologies that protect against cyber threats and...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.