This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

Re: HELP! FreeBSD g++ multi-threaded application?


> I know that libstdc++ is not thread safe.  Is
> there any way to get around that?  I am compiling
> with the -D_REENTRANT -D_THREAD_SAFE -D_PTHREADS
> -D__USE_MALLOC flags.  Is there something else I'm
> missing?

Just use
--enable-threads=posix

and then -pthread on the compile line. You might want to provide more 
info on what compiler and library versions you are using.

-benjamin

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