>>>>> "Bob" == Bob Friesenhahn <[EMAIL PROTECTED]> writes:
> On Thu, 21 Dec 2000 [EMAIL PROTECTED] wrote:
>>
>> -pthread -- is for gcc
> Support for -pthread in gcc is non-standard. It is not supported by
> the standard GNU compiler (e.g. 2.95.2) when configured and compiled
> from distributed sources.
> The portable way to support POSIX threads for SunOS 5.6 and later is
> to add -D_REENTRANT to the compilation defines, and -lpthread to the
> libraries. Use of -lposix4 is optional, and is not necessarily
> required in order to use -lpthread. See the threads(3t) manual page.
This is correct. -lposix4 is needed only if you need sched_yield() or
POSIX 1003.1b semaphores.
Ganesan
--
R. Ganesan ([EMAIL PROTECTED]) | Ph: 91-80-5721856 Ext: 2149
Novell India Development Center. | #include <std_disclaimer.h>