cout function and iostream.h
abcd efgh
seminarull@yahoo.com
Thu Jan 8 09:20:00 GMT 2004
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
More information about the Gcc-help
mailing list