This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Annoying iostream.h warning messages.
- To: viper at ns2 dot bub dot com (Viper)
- Subject: Re: Annoying iostream.h warning messages.
- From: hjl at lucon dot org (H.J. Lu)
- Date: Sun, 23 Aug 1998 07:45:41 -0700 (PDT)
- Cc: egcs at cygnus dot com
>
> When I use g++ (from egcs-2.91.54, latest snapshot) to compile even a very
> simple "hello world" program, it results in over a page of warning
> messages. This becomes very annoying, especially when trying to debug
> compiler errors for large projects that involve many different files.
>
> My older GNU g++ produced no warnings from iostream.h and streambuf.h. I
> have checked that my system include files match the include files provided
> by the egcs distribution. Am I doing something wrong to cause these
> warning messages to come up? Why should the system include files be
> causing warnings. Thanks.
>
> Here is an example file called "test.cc":
>
> -------------------------------------------
> #include <iostream.h>
>
> main()
> {
> cout << "Hello world." << endl;
> }
> -------------------------------------------
>
> Now, when I compile it by typing "g++ test.cc -o test", the following
> warnings are produced:
>
Ooops. I meant to say it compiles fine on Linux with glibc 2.0.7
and libc 5.4.46.
H.J.