How can I parse both Java and C++ in Eclipse?

2019-01-23 12:40发布

On the Eclipse homepage, I see two versions -- Eclipse for C++ developers and Eclipse for Java developers. I'm working on a project that combines both Java and native C++ code. I am using the Java version, and when I open one of the C++ files, not only is it not parsed, but it opens the file in an external editor. I'm probably missing something simple, but how do I get Eclipse to work with both types of source files? Is there a combined Eclipse package for this? Thanks.

3条回答
狗以群分
2楼-- · 2019-01-23 13:28

You can install the missing functionality with adding the appropriate plugins.

http://eclipse.org/cdt/

查看更多
一纸荒年 Trace。
3楼-- · 2019-01-23 13:32

You can download the C++ views from a Java version of Eclipse, the same way you would download any packages. They are two different 'views' though so I don't think you can look at code for both in the same project view.

This explains it http://www.venukb.com/2006/08/20/install-eclipse-plugins-the-easy-way/

查看更多
Rolldiameter
4楼-- · 2019-01-23 13:43

Eclipse is fully plugin based. Just go to Help -> Install new Software and select the Indigo (or whatever version you are using) update site. Then go to Programming languages and select the C/C++ tools you want to install. The different downloads from the Eclipse website are basically just preconfigured plugin bundles and you can always add anything you are missing from the plugin manager.

查看更多
登录 后发表回答