libstdc++ and glibc 2.1.1?

Benjamin Kosnik bkoz@cygnus.com
Thu Jul 15 11:55:00 GMT 1999


Joerg:

You seem to be having problems with libstdc++-v2, which is shipped
with egcs. Just to clarify, this list is for libstdc++-v3, which is a
standards-compliant library designed to replace libstdc++-v2.

As you've noticed, the differences between libio in RH 5.2 and RH 6.0
have introduced a binary incompatibility. Assuming that the shared
libstdc++ library was built correctly, you should be able to configure
your RH 6.0 host with the proper RH 5.2 shared libraries and have
everything work. However, this is not the proper list for that kind of
question. . .

Using v-3, and changing your code to be standards conformant, gives the
value for y that I believe you're looking for: the character 't';

#include <sstream>
main() {
   char x ;
   istringstream beitl("this is the input string") ;
   char y ;
   beitl.read(&y, 1) ;
}

-Benjamin


More information about the Libstdc++ mailing list