Hi guys, I'm using Eclipse (Juno Service Release 2 Build id: 20130225-0426).
Up until now I used it for C, and i want to start learning C++.
The problem is, it won't create C++ project properly:
I clicked "File->New->C++ Project", named it "Exercise1" and clicked "Finish".
I then created new source file named "main.cpp", but when I write:
It says "Unresolved inclusion: <iostream>".
I clicked the "Includes" at the "Project Explorer" window to the left, but there's no iostream header file there, I could only find C header files.
What am I doing wrong?
Why won't it include the header files for C++?
(another unrelated question: what's the difference between Juno version of eclipse and the CDT plugin?)
Any help would be greatly appreciated.
Thanks in advanced!
After two days of searching for an answer in the web, i finally found what's wrong:
I had some missing plugins that had to be installed,
if anyone interested:
I first pressed "Help->Install new software",
at the Install dialog i pressed the "Add..." button.
in the "Add Repository" dialog i typed something as name and in the "Location" input box i typed: " http://download.eclipse.org/tools/cdt/releases/juno " and pressed OK to install.
so now there's another strange problem :confused: :
it won't resolve the "cout" command, but it still prints output to the console (at the bottom).
I searched for the unresolved inclusion ("Project->Index->Unresolved Inclusions") and you can see in the right window at the picture what's missing.
where do i get these missing files from, and how can it prints to the console if "cout" cannot be resolved?