Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
hi,

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

Perhaps it helps Confused
Previous Topic:Indexer fails from java.lang.StackOverflowError
Next Topic:Invalid project paths in multi-platform project
Goto Forum:
  


Current Time: Wed Jun 18 07:25:23 EDT 2025

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

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

Back to the top