[lug] pthreads

Kevin King kevin at precisonline.com
Tue May 30 17:35:35 MDT 2000


Thank you so much for your help.  The -lpthread option was exactly it.  How
could I have found this in the man or info pages?  I searched all through
for anything with "thread" and found nothing related to my problem.

--Kevin
kevin at precisonline.com
http://www.precisonline.com
http://www.precisonline.com/gold.htm

-----Original Message-----
From: Tom Tromey <tromey at cygnus.com>
To: lug at lug.boulder.co.us <lug at lug.boulder.co.us>
Date: Tuesday, May 30, 2000 4:33 PM
Subject: Re: [lug] pthreads


>>>>>> "Kevin" == Kevin King <kevin at precisonline.com> writes:
>
>Kevin> Based on the premise that a library wasn't being linked, I
>Kevin> modified the gcc command to include the /usr/lib/libpthread.so,
>Kevin> but I didn't think it would work (last resort, you know?).
>
>Yes, you must link thread programs with -lpthread.
>
>Kevin> It caused the above error to go away, but now I get a seg fault
>Kevin> when trying to run the program -- right at the pthread_create.
>
>Without seeing your code, we can't be sure of what is going on.  The
>likeliest problem is that you have a bug in your code.  Threaded
>programs work fine for me.
>
>Tom
>
>
>_______________________________________________
>Web Page:  http://lug.boulder.co.us
>Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
>
>





More information about the LUG mailing list