So I’m running Mac OSX Lion and I recently installed Eclipse IDE for Java Developers. I recently started programming in C++ and I wanted to be able to use Eclipse as my main IDE. So first thing I did was install the Command Line told from Xcode in order to be able to use the g++ compiler. I then went into eclipse -> help -> install new software and entered the following link: http://download.eclipse.org/tools/cdt/releases/indigo .
I installed all of the Main Features and the Optional Features. I then created a new C++ Hello World Project and built it. However when I right click on the binary file, there in no “Run as local C/C++ Application” option. There’s actually no run option at all.
I downloaded and installed the Eclipse IDE for C/C++ Developers and created a new hello world project just to test. This one seemed to work fine. Why does it work in the c/c++ IDE but not in the java IDE with the CDT installed along-side?
So after a lot of toying around, I came up with a somewhat annoying solution. Because it worked with the C/C++ IDE, I just decided to look at everything that was installed in that version and make sure it was installed in the Java IDE. For some odd reason it worked. I add already installed all the main features but I guess it wasn’t enough.