本文介绍了Eclipse下的C ++编程和开发?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我已经使用Eclipse几周了,IMO没有更好的

IDE。


自从我的经验非常有成​​效 - 因此令人满意 - 在
Java中,我想使用相同的IDE环境进行C ++

编程,目标是Unix和Windows。


如果有任何Eclipse / C ++开发人员,您可以分享您的

建议,提示,意见等。


我想我必须以某种方式将适当的编译器(gcc

或MS VC ++)附加到IDE。那么我是否可以使用代码

完成(按一个点和菜单出现)?


下一个问题对我来说是必杀技:自从我从不使用Unix /

Linux GUI(只是终端/ CLI远程访问)但是我在* ix下开发,

我一直坚持''vi''。远程XWindows不可行

因为我可能在一个没有如此强大的互联网带宽的国家。那么:

是否可以在我的本地WinXP盒子上运行Eclipse,同时在远程(跨大西洋)服务器上驱动

gcc / gdb?


TIA,


-Ramon


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

推荐答案



Eclipse CDT(C / C ++开发工具包)


Eclipse CDT是一个Eclipse插件,可以将Eclipse转换为强大的C / C ++ IDE。它的目的是为Java开发人员带来Eclipse提供给Eclipse C / C ++开发人员的许多优秀功能,例如项目管理,集成调试,类向导,自动化
构建,语法着色和代码完成。当Eclipse用作Java IDE时,它利用并集成了JDK。同样,

CDT利用并集成了标准的C / C ++工具,例如g ++,

这些工具随时可用并用于大多数C ++

开发。可以在Windows上设置CDT以使用相同的工具。

还在不断努力让CDT与

微软的C ++工具一起使用使它对Windows C ++更具吸引力

开发者。


[...]




-RFH


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




Eclipse CDT(C / C ++开发工具包)

Eclipse CDT是一个Eclipse插件,可以将Eclipse转换为

功能强大的C / C ++ IDE。它的目的是为Java开发人员带来Eclipse提供给Eclipse C / C ++开发人员的许多优秀功能,例如项目管理,集成调试,类向导,自动化
构建,语法着色和代码完成。当Eclipse用作Java IDE时,它利用并集成了JDK。同样,

CDT利用并集成了标准的C / C ++工具,例如g ++,

这些工具随时可用并用于大多数C ++

开发。可以在Windows上设置CDT以使用相同的工具。

还在不断努力让CDT与

微软的C ++工具一起使用使它对Windows C ++更具吸引力

开发者。


[...]

...

-RFH


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




我认为Eclipse对于C ++而言并不像Java那么好,但是......


Eclipse C ++使用makefile',所以它相对容易支持

任何编译器。设置它有几种不同的方法。


起点:




关于远程构建解决方案,那么我想我会编辑并在本地Eclipse中进行
a Win32构建,提交更改为一个CVS服务器和一个终端窗口中的
来自CVS和build的远程Unix盒子更新。

一个低技术解决方案,但它会工作。


Arne

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


这篇关于Eclipse下的C ++编程和开发?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-02 09:01