This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
undeclared "cout"
- From: H S Rai <hsraidce at iitr dot ernet dot in>
- To: <gcc-help at gcc dot gnu dot org>
- Date: Tue, 3 Dec 2002 19:46:59 +0530 (IST)
- Subject: undeclared "cout"
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