Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I add Eclipse C++ to Eclipse classic?

I have Eclipse Classic for my Java classes, and I have Visual Studio as well, but I'd much rather keep using Eclipse. Can anyone help?

I tried adding the addons from within Eclipse but it didn't work properly.

like image 216
Portaljacker Avatar asked Nov 13 '10 23:11

Portaljacker


People also ask

How do I change from Java to C in Eclipse?

In Eclipse, go to the "File" menu, then "New", then "C++ Project" if it's there. If not, choose "Project", then find "C/C++" in the list of wizards, click the "+" sign to expand it, and choose "C++ Project". A dialog box will ask whether to open the C/C++ perspective. Answer "yes", and remember this decision.

Is Eclipse compatible with C?

Eclipse is a widely used IDE primarily for Java development. Eclipse is also used for C and C++ development as well as PHP among the other programming languages. Eclipse IDE is written in Java.

How can I use both Java and C on Eclipse?

Eclipse is a platform. Install either. Then run it. Click "Help > Install New Software ..." then in the "Work with" drop down select "Neon - http://download.eclipse.org/releases/neon/", then expand "Programming Languages" and select "C/C++" or "Java" as desired.


2 Answers

You need the Eclipse CDT project plugin.

Having said that, unless you need platform independence, don't give up on Visual Studio. For C/C++ Visual Studio is way, way, way better and faster than Eclipse. (IMHO).

like image 138
Pablo Santa Cruz Avatar answered Oct 05 '22 19:10

Pablo Santa Cruz


If you work with Windows, I suggest you use 2 different instances of Eclipse. As Eclipse is a portable app (no registry), it is easy to use 2 different instances, or more.

You can also go to Help -> Install new software, choose the Eclipse update site and then choose the C/C++ Development Tools package.

Edit: I have just seen LarsH's question. I should have added that the C/C++ Development Tools package is an Eclipse standard issue and can be added from official Eclipse update sites, like the Juno update site: http://download.eclipse.org/releases/juno/ (it should already be in your update sites list if you are using Eclipse Juno). If everything else fails, you can even download the C/C++ tools here: http://www.eclipse.org/cdt/downloads.php and install them yourself.

like image 38
Alexis Dufrenoy Avatar answered Oct 05 '22 19:10

Alexis Dufrenoy