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: Subtle problem with libstdc++-v3 when used with gcc configuredwith --enable-shared --enable-threads\=posix


Loren James Rittle wrote:
[...]
> If I manually take out the -lm and -lc in the second command line, I
> get a shared libstdc++ library that appears to work just fine when
> either libc or libc_r is provided by the g++ driver at later link-times.
> 
> Is this solution on the right track?

Shouldn't there be two versions of the C++ library on such systems,
libstdc++ and libstdc++_r, each linked with the appropriate libc?
After all, what sense does it make to use a thread-safe C++ library,
if the C library isn't?

    Brane

-- 
Branko Čibej                 <branko.cibej@hermes.si>
HERMES SoftLab, Litijska 51, 1000 Ljubljana, Slovenia
voice: (+386 1) 586 53 49     fax: (+386 1) 586 52 70

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