2

I'm a Java developer who wants to start with C/C++ now. I have an Eclipse JDT installation, and today added the CDT feature plugin from inside Eclipse (Help->Install new software..-> and so on)

I restarted Eclipse, but I cannot see the C/C++ perspective and cannot create anything else than Java project. Googled on it, but found nothing special. Then I opened a terminal and did a sudo apt-get install eclipse-cdt. Started Eclipse again but nothing changed. I know there are downloadable Eclipse CDT packs, but I would not like to use them.

What should I do?

Using: Eclipse Galileo on Ubuntu 11.04

3 Answers 3

1

The apt package will definitely not install CDT to your existing eclipse "install" unless you used apt originally. Even then it still might not (not sure if it's supposed to).

Also, make sure that when you run eclipse you do

whereis eclipse

to make sure the path is pointing to the new eclipse-cdt version.

I usually do:

sudo updatedb
locate eclipse
1

Try this: Window->Open perspective->Other... The CDT perspective should be there unless an error occurred while installing.

EDIT: Also make sure that Eclipse C/C++ Development Tools are listed in your installation details. Help->About Eclipse SDK->Installation details

7
  • CDT isn't listed, however there were no errors during installation and says it is installed already.
    – jabal
    May 28, 2011 at 10:06
  • When I said CDT I actually meant C/C++, is C/C++ listed?
    – Smotko
    May 28, 2011 at 10:54
  • Of course. But only Debug, Java, Resources, etc. are listed, nothing related to C
    – jabal
    May 28, 2011 at 11:34
  • I did a `sudo apt-get remove eclipse-*' and 'sudo apt-get install eclipse-cdt' and mysteriously I got back the same Eclipse JDT (!) without any C/C++ features..
    – jabal
    May 28, 2011 at 11:36
  • Are CDT listed in installations details (check my answer edit)?
    – Smotko
    May 28, 2011 at 11:36
1

I just figured out that it was a workspace issue. I created two workspace folders, one for java and another for C++. Then I closed the java perspective, closed eclipse, opened again, selected c++ workspace, then was able to open the c++ perspective.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .