468,504 Members | 1,968 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,504 developers. It's quick & easy.

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 3374
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Mohan | last post: by
9 posts views Thread by Buster | last post: by
4 posts views Thread by gamaron | last post: by
1 post views Thread by santa19992000 | last post: by
4 posts views Thread by Richard Levasseur | last post: by
7 posts views Thread by R.A.M. | last post: by
1 post views Thread by ssaraceni | last post: by
reply views Thread by NPC403 | last post: by
3 posts views Thread by gieforce | last post: by
reply views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.