Multi-threaded Applications Crash

David Cogen cogen@ll.mit.edu
Thu Mar 25 06:32:00 GMT 1999


> >
> > Is there such a flag?
> 
> On Sparc, -pthreads takes care of it all. On other Solaris platforms, I'd like
> to see this flag incorporated into the mainstream distribution. And, of course,
> _POSIX_PTHREAD_SEMANTICS should be there too.


What is "-pthreads"? It is not in g++ info files. How did you discover this? I
tried it anyway. It seemed to be accepted by the compiler, but I got the
error:

  /data/hancock0/cogen/gnu/include/g++/stl_alloc.h:73: pthread.h: No such file
or directory

The info files mention a "-mthreads" option. I tried that but the option is
rejected by the compiler.

-- DavidC


More information about the Gcc mailing list