This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: Issues with RH6.0 and libstdc++
- To: chrisp@lizardtech.com
- Subject: Re: Issues with RH6.0 and libstdc++
- From: "Martin v. Loewis" <martin@mira.isdn.cs.tu-berlin.de>
- Date: Fri, 18 Jun 1999 09:18:49 +0200
- CC: libstdc++@sourceware.cygnus.com
- References: <37696B56.C6707F8E@lizardtech.com>
> Now everything compiles. However, for some reason I get the following
> linking errors:
>
> /usr/local/include/g++/std/bastring.h(.text+0x1aa): undefined reference
> to `ostream::operator<<(int)'
The reason is simple: You are using the wrong header files. In a
compliant library, ostream is a template instantiation, not a class.
Also, please note that the libstdc++ instructions recommend using gcc
snapshots, instead of egcs 1.1.
Regards,
Martin