Skip to main content


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 15:39
John Curry is currently offline John CurryFriend
Messages: 4
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: Sat Apr 27 02:03:21 GMT 2024

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

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

Back to the top