Multi-threaded Applications Crash
Dima Volodin
dvv@dvv.ru
Wed Mar 31 23:46:00 GMT 1999
477_dv@lazybones> ls -l /usr/include/pthread.h
-rw-r--r-- 1 bin bin 9136 Jul 15 1997 /usr/include/pthread.h
478_dv@lazybones> uname -a
SunOS lazybones 5.6 Generic_105181-11 sun4m sparc SUNW,SPARCstation-20
479_dv@lazybones>
On Thu, 25 Mar 1999 09:32:29 -0500, you wrote:
>> >
>> > 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