HELP! FreeBSD g++ multi-threaded application?
Benjamin Kosnik
bkoz@redhat.com
Tue Jan 23 13:30:00 GMT 2001
> 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
More information about the Gcc
mailing list