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]

Re: undeclared "cout"


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
>


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