Problem with `string', threading and shared libraries.

Alexandre Oliva
Fri Sep 28 14:40:00 GMT 2001

On Sep 28, 2001, Gabriel Dos Reis <> wrote:

> Alexandre Oliva <> writes:
> | On Sep 28, 2001, Carlo Wood <> wrote:
> | 
> | > I was wondering, how can it be that `string' has a different
> | > mangling on different compilers/machines?  Isn't that a bug?
> | 
> | Well, it can be argued that they are actually two different classes,

> If they are really considered to be two different classes, then
> "std::string" is a truly bad choice.  

Well, using different compilers can always result in different
mangling for std::string.  In this case, it's the same version of GCC
built with different configure arguments, but the configure arguments
still make them different compilers.

Alexandre Oliva   Enjoy Guarana', see
Red Hat GCC Developer                  aoliva@{,}
CS PhD student at IC-Unicamp        oliva@{,}
Free Software Evangelist    *Please* write to mailing lists, not to me

More information about the Gcc-bugs mailing list