This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
cout function and iostream.h
- From: abcd efgh <seminarull at yahoo dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 8 Jan 2004 01:20:35 -0800 (PST)
- Subject: cout function and iostream.h
Hello,
I am trying to compile a simple "hello world" program:
#include "iostream.h"
int main()
{
cout << "Hello\n";
}
with the command
g++ -Wall hello.C -o hello
and I receive the following warning:
"This file includes at least one deprecated or
antiquated header. Please consider using one of the 32
headers found in section 17.4.1.2 of the C++ standard.
Examples include substituting the <X> header for the
<X.h> header for C++ includes, or <sstream> instead of
the deprecated header <strstream.h>. To disable this
warning use -Wno-deprecated."
An executable file is created but it doesn't run.
Is there a new header to obtain the cout function, or
was it replaced ?
Thanks in advance for any help,
Antonio Serra
__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus