This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Annoying iostream.h warning messages.
- To: "H.J. Lu" <hjl at lucon dot org>
- Subject: Re: Annoying iostream.h warning messages.
- From: Viper <viper at ns2 dot bub dot com>
- Date: Mon, 24 Aug 1998 00:41:47 -0500 (CDT)
- cc: carlo at runaway dot xs4all dot nl, egcs at cygnus dot com
# gcc -M test.cc
test.o: test.cc /usr/include/g++/iostream /usr/include/g++/iostream.h \
/usr/include/g++/streambuf.h /usr/include/g++/libio.h \
/usr/include/g++/_G_config.h
# cat test.cc
#include <iostream>
main()
{
cout << "Hello world." << endl;
}
Thanks for any assistance.
On Sun, 23 Aug 1998, H.J. Lu wrote:
> >
> > I am using the iostream.h that came with egcs-19980816.tar.gz. I never
> > installed any older or non-egcs compilers after installing egcs. I even
> > cleaned out my g++ include directory before re-installing egcs, and I
> > still get the annoying warning messages.
> >
> > # ls -la /usr/include/g++/iostream.h
> > -rw-r--r-- 1 root root 9658 Aug 22 18:24 /usr/include/g++/iostream.h
> >
> > # wc -l /usr/include/g++/iostream.h
> > 272 /usr/include/g++/iostream.h
> >
> > # ls -la /usr/include/g++/streambuf.h
> > -rw-r--r-- 1 root root 16910 Aug 22 18:24 /usr/include/g++/streambuf.h
> >
> > # wc -l /usr/include/g++/streambuf.h
> > 488 /usr/include/g++/streambuf.h
> >
> > Here are the header files that come with egcs-19980816:
> >
> > # ls -la ./egcs-19980816/libio/iostream.h
> > -rw-r--r-- 1 root root 9658 Sep 16 1997 ./egcs-19980816/libio/iostream.h
> > # ls -la ./egcs-19980816/libio/streambuf.h
> > -rw-r--r-- 1 root root 16910 Feb 24 12:09 ./egcs-19980816/libio/streambuf.h
> >
> > If you use these same files in your system, try compiling the following:
> >
> > -----------------test.cc-----------------
> > #include <iostream>
> >
> > main()
> > {
> > cout << "Hello world." << endl;
> > }
> > -----------------------------------------
> >
> > Then type "g++ test.cc -o test". On my system, the program compiles, but
>
> Please send me the output of
>
> # gcc -M test.cc
>
>
> H.J.
>