Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Unresolved inclusion: <iostream>
Unresolved inclusion: <iostream> [message #638389] Thu, 11 November 2010 07:40 Go to previous message
No real name is currently offline No real nameFriend
Messages: 1
Registered: November 2010
Junior Member
I have installed CygWin with all the necessary packages, and Eclipse with CDT, and I'm trying my hand at some C++ ...

Now I got this little program from

#include <iostream>	

using namespace std;
int main()                            // Most important part of the program!
  int age;                            // Need a variable...
  cout<<"Please input your age: ";    // Asks for age
  cin>> age;                          // The input is put in age
  cin.ignore();                       // Throw away enter
  if ( age < 100 ) {                  // If the age is less than 100
     cout<<"You are pretty young!\n"; // Just to show you it works...
  else if ( age == 100 ) {            // I use else just to show an example 
     cout<<"You are old\n";           // Just to show you it works...
  else {
    cout<<"You are really old\n";     // Executed if no other statement is

Eclipse underlines
#include <iostream>
and says
Unresolved inclusion: <iostream>

Now what?

EDIT: PS: It compiles and runs in Notepad++, where I use my own compile script.

[Updated on: Thu, 11 November 2010 10:32]

Report message to a moderator

Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Restart GDB HW Debugging.
Next Topic:elcipse debugger crash
Goto Forum:

Current Time: Mon Nov 30 22:34:57 GMT 2015

Powered by FUDForum. Page generated in 0.10395 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software