undeclared "cout"
m.
michal017@centrum.sk
Tue Dec 3 06:08:00 GMT 2002
use std::cout
On Tue, 3 Dec 2002 19:46:59 +0530 (IST)
H S Rai <hsraidce@iitr.ernet.in> wrote:
>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