This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: HELP! FreeBSD g++ multi-threaded application?
- To: jeanniey at corp124 dot com
- Subject: Re: HELP! FreeBSD g++ multi-threaded application?
- From: Benjamin Kosnik <bkoz at redhat dot com>
- Date: Tue, 23 Jan 2001 13:30:48 -0800 (PST)
- cc: gcc at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
> 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