HELP! FreeBSD g++ multi-threaded application?

jeanniey@corp124.com jeanniey@corp124.com
Tue Jan 23 13:26:00 GMT 2001


Hi,

I'm working on porting multi-threaded application
on the FreeBSD OS.   I have built the application
using the gnu g++ compiler.  I am running into all
sorts of problems indicative of memory bashing and
unsafe concurrent access.

Does anyone know of any problems with reentrant
libraries on FreeBSD?  Also, is there any way I
can tell which libraries are thread safe or not?  

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?

any help would be greatly appreciated.  thank you,
jeannie yang
jeanniey@corp124.com


More information about the Gcc mailing list