Steve Bby
2006-06-16 17:44:39 UTC
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!
********************
#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!