Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » C++: Symbol 'cout' could not be resolved
C++: Symbol 'cout' could not be resolved [message #1703660] Tue, 04 August 2015 00:05
Michael Lilley is currently offline Michael LilleyFriend
Messages: 2
Registered: August 2015
Junior Member
Hi all,

I'm new to Eclipse and have already run into an irritating problem. Whenever I try to build a project, I get an error stating "Symbol 'cout' could not be resolved". My code is posted below:

#include <iostream>
#include <cstdlib>

using namespace std;

int main()
{
	cout << "Hello World!";
}


I'm running on Debian 8.1 Jessie, and using the Linux GCC toolchain and CDT Internal Builder. My included directories are:

/usr/include/c++/4.9
/usr/include/x86_64-linux-gnu/c++/4.9
/usr/include/c++/4.9/backward
/usr/lib/gcc/x86_64-linux-gnu/4.9/include
/usr/local/include
/usr/lib/gcc/x86_64-linux-gnu/4.9/include-fixed
/usr/include/x86_64-linux-gnu
/usr/include


Any help would be appreciated.
Previous Topic: Converting a C project to C++
Next Topic:Output printed in unexpected way
Goto Forum:
  


Current Time: Thu Apr 25 00:32:59 GMT 2024

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

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

Back to the top