gnu.gcc.help
[Top] [All Lists]

#include <iostream> ERROR

Subject: #include <iostream> ERROR
From: Steve Bby
Date: Fri, 16 Jun 2006 17:45:04 GMT
Newsgroups: gnu.gcc.help
I compile a small program below:
********************
#include <iostream>

main()
{
        cout << "Test\n";
}
********************

GOT ERROR:
=====================
$ g++ -o bmain bmain.c
bmain.c: In function `int main()':
bmain.c:5: error: `cout' undeclared (first use this function)
bmain.c:5: error: (Each undeclared identifier is reported only once for each 
function it appears in.)
$

What's wrong. Help please!


<Prev in Thread] Current Thread [Next in Thread>