This is the mail archive of the gcc@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]

Re: Annoying iostream.h warning messages.


> 
> 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.


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