This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]