Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Symbol 'cout' could not be resolved(c++ failure compiling "Hello World")
Symbol 'cout' could not be resolved [message #997312] Sat, 05 January 2013 10:39
John Curry is currently offline John Curry
Messages: 3
Registered: July 2010
Junior Member
Hi,

having issues with Eclipse: Hello World will not compile. See below for specifics.

Thanks!
John Curry
-------------------------------------------------------------------------
- Fresh install of Eclipse IDE for C/C++ Developers
Version: Juno Service Release 1
Build id: 20120920-0800

- Installed MinGW
- Added to PATH: c:\mingw\bin;C:\MinGW\msys\1.0\bin
- Created vanilla "Hello World": (TestProj.cpp)

#include <iostream>
using namespace std;

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

Build Project yields:
Description Resource Path Location Type
Symbol 'std' could not be resolved TestProj.cpp /TestProj/src line 10 Semantic Error
Symbol 'cout' could not be resolved TestProj.cpp /TestProj/src line 13 Semantic Error
Symbol 'endl' could not be resolved TestProj.cpp /TestProj/src line 13 Semantic Error
Previous Topic:CDT Install issues
Next Topic:#include <thread> not recognized
Goto Forum:
  


Current Time: Fri Aug 01 02:05:44 EDT 2014

Powered by FUDForum. Page generated in 0.01868 seconds