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: Multi-threaded Applications Crash


> >
> > 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


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