[lug] pthreads

Archer Sully archer at meer.net
Tue May 30 17:00:02 MDT 2000


----- Original Message -----
From: "Kevin King" <kevin at precisonline.com>

>
> Based on the premise that a library wasn't being linked, I modified the
gcc
> command to include the /usr/lib/libpthread.so, but I didn't think it would
> work (last resort, you know?).  It caused the above error to go away, but
> now I get a seg fault when trying to run the program -- right at the
> pthread_create.  I've looked the man and info pages and haven't found any
> specific secrets to make this work (to address the RTFM issue).
>

You aren't calling pthread_create correctly somehow.  Without seeing
the code, there's no way to know exactly what you are doing wrong,
although most likely you are passing an argument by value instead of
by address.

-- archer







More information about the LUG mailing list