This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


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

Re: Issues with RH6.0 and libstdc++


> 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

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