Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » CDT » Newbie; Can't create a new C++ project
Newbie; Can't create a new C++ project [message #1016154] Tue, 05 March 2013 04:34 Go to next message
Stormey legend is currently offline Stormey legend
Messages: 8
Registered: December 2012
Junior Member
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:

http://i47.tinypic.com/34dfthu.jpg

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:
#include<iostream>
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!
Re: Newbie; Can't create a new C++ project [message #1016459 is a reply to message #1016154] Wed, 06 March 2013 09:23 Go to previous message
Stormey legend is currently offline Stormey legend
Messages: 8
Registered: December 2012
Junior Member
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: :

http://i49.tinypic.com/10rtq87.png

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?

I'm so, very tired.
Previous Topic:Remote GDB debugging and X11-Forwarding
Next Topic:CDT rename refactoring breaks the code
Goto Forum:
  


Current Time: Tue Jun 18 03:37:59 EDT 2013

Powered by FUDForum. Page generated in 0.03487 seconds