Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.

Embarassingly simple problem

ltkeene
Beginner
244 Views
Hi folks, it's been a while since I've hacked out some C/C++ code, but I can't see why the following generates an error when compiling with v11.1 at the command prompt:


#include

int main()
{
cout << "Hi there!";
return 0;
}

compiler error: identifier "cout" is undefined.


As mentioned, I'm running the Intel compiler from the command prompt via:
"Start->Programs->Intel Software Development Tools->Intel C++ Compiler Professional v11.1.038->C++ Build Environments for Applications running on ia32"

What mondo-basic thing have I neglected to do? Thanks in advance.
-L
0 Kudos
1 Reply
JenniferJ
Moderator
244 Views
Quoting - ltkeene
cout << "Hi there!";
Change above "cout" to "std::cout".

Jennifer
0 Kudos
Reply