Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Strange C++ Standard Library Problem(Eclipse CDT won't recognize standard library. )
Strange C++ Standard Library Problem [message #902437] Fri, 17 August 2012 10:59 Go to next message
Mike G is currently offline Mike G
Messages: 1
Registered: August 2012
Junior Member
So I have the following code:


#include <iostream>
using namespace std;

int main() {
cout << "!!!Hello World!!!" << endl; // prints !!!Hello World!!!
return 0;
}


I've underlined all the things that give errors. I'm on a mac, running Indego. I installed all the compilers using Xcode. At some point in the update process from an old version of eclipse, I got frustrated and just deleted the entire program and installed the new one. Since then, I've been working on a project that I re-imported back into eclipse. Everything has worked fine. When I started a new project, it won't recognize the standard library.

In the command line, I have tested that the following commands work "g++, gcc, make, c++"
Re: Strange C++ Standard Library Problem [message #903286 is a reply to message #902437] Wed, 22 August 2012 16:48 Go to previous message
Nick Schweyer is currently offline Nick Schweyer
Messages: 151
Registered: July 2009
Senior Member
hi,

I am on Linux with Eclipse and there the include should look like
#include <iostream.h>

Perhaps it helps Confused


Nick Schweyer

Eclipse Helios, Qt 4.3, Qt integration, open Suse Linux 11.3
Previous Topic:Indexer fails from java.lang.StackOverflowError
Next Topic:Symbol not found for AVR Timer Registers
Goto Forum:
  


Current Time: Sun Apr 20 04:20:49 EDT 2014

Powered by FUDForum. Page generated in 0.01493 seconds