Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » C++: Symbol 'cout' could not be resolved
C++: Symbol 'cout' could not be resolved [message #1703659] Mon, 03 August 2015 23:54 Go to next message
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 solving this would be appreciated.
Re: C++: Symbol 'cout' could not be resolved [message #1703741 is a reply to message #1703659] Tue, 04 August 2015 15:20 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3799
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 08/03/2015 10:05 PM, Michael Lilley wrote:
> 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 solving this would be appreciated.

There's an Eclipse CDT forum to post in.
Re: C++: Symbol 'cout' could not be resolved [message #1705475 is a reply to message #1703659] Sun, 16 August 2015 13:15 Go to previous message
x t is currently offline x tFriend
Messages: 5
Registered: January 2013
Junior Member
This problem affects me for a while. Even after Googling many resources. Finally I removed everything in $WORKSPACE$ and recreate the project. It just works for me. Eclipse upsets me a lot this time
Previous Topic:Not able to start eclipse
Next Topic:Eclipse won't start anymore after Windows 7 self-update
Goto Forum:
  


Current Time: Mon Sep 16 09:29:19 GMT 2019

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

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

Back to the top