undeclared "cout"

H S Rai hsraidce@iitr.ernet.in
Tue Dec 3 06:06:00 GMT 2002


On g++3.2, it give "cout undeclared" on issuing:

g++ a.cc

The program is:
-------------------------------------

#include <iostream>
int main()
{
 cout << " Hello \n";
 return 0;
}
--------------------------------------

If I use iostream.h and compile with -Wno-deprecated option, then it
works fine. Can't we use cout with precompiled headers.

-- 
H.S.Rai



More information about the Gcc-help mailing list