Skip to main content


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 14:59 Go to next message
Mike G is currently offline Mike GFriend
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 20:48 Go to previous message
Nick Schweyer is currently offline Nick SchweyerFriend
Messages: 175
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


Niko

Eclipse-CDT Version: 2019-12 (4.14.0), Win10 64bit
Previous Topic:Indexer fails from java.lang.StackOverflowError
Next Topic:Invalid project paths in multi-platform project
Goto Forum:
  


Current Time: Fri Apr 19 00:40:18 GMT 2024

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

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

Back to the top