Hi,
apologise for this rather naive and certainly stupid question, but I am a little bit confused.
I recently started to use Eclipse Kepler 4.3 on my Ubuntu and worked first with developping Java applications.
I want now to have C++ support as well. Of course, i could download the standalone application for C++ but for convenience, i would like to have it as plugin.
to do this, i did the following steps:
1) i selected in the menu: Help -> Install new software
2) I followed the instructions given at this link http://eclipse.org/cdt/downloads.php to install CDT: I checked all packages because i was not sure.
In the Add: I put Name: CDT and URL: http://download.eclipse.org/tools/cdt/releases/kepler
3) I added the Linux Tools as described here: http://wiki.eclipse.org/Linux_Tools_...ginInstallHelp
namely: Help -> Install new software -> Add and put as:
Name: Linux Tools
URL: http://download.eclipse.org/linuxtools/update
4) then i started again eclipse and created a new workspace for my c++ projects.
5) I created a new project from the Menu: File -> New -> C++ Project
Project type: Executable -> Hello World C++ Project
Toolchains: Linux GCC
(I also tried Makefile project)
6) this produced the following HelloWorld.cpp file
Something is screwed up at here. Eclipse complains indeed already that it does not know about std or cout. I must have missed one important step here. I will be grateful if someone has some idea what could be wrong in the above steps.Code:#include <iostream> using namespace std; int main() { cout << "!!!Hello World!!!" << endl; // prints !!!Hello World!!! return 0; }
No need to mention, that I fail to build it within Eclipse, since if i try to build the project, i get:
Thanks for your help here.Code:Errors occurred during the build. Errors running builder 'CDT Builder' on project 'HelloWorld'. Internal error building project HelloWorld configuration Debug java.lang.NullPointerException Internal error building project HelloWorld configuration Debug java.lang.NullPointerException Errors running builder 'CDT Builder' on project 'TestCPP'. Internal error building project TestCPP configuration Debug java.lang.NullPointerException Internal error building project TestCPP configuration Debug java.lang.NullPointerException Errors running builder 'CDT Builder' on project 'toto'. Internal error building project toto configuration Default java.lang.NullPointerException Internal error building project toto configuration Default java.lang.NullPointerException
Bookmarks