Which lib for pthreads?
Jonathon McKitrick
jcm at FreeBSD-uk.eu.org
Sun Mar 6 13:32:54 PST 2005
On Sat, Mar 05, 2005 at 07:18:31PM -0600, Dan Nelson wrote:
: In the last episode (Mar 05), Jonathon McKitrick said:
: > Linux lets me use -pthread, but under BSD I get 'undefined symbol
: > "pthread_mutex_lock."'
: >
: > What's the correct linker syntax for pthreads?
:
: That would be it. It should work on 4.* and 5.*.
I found -lc_r does the trick. Not what I was expecting.
Jonathon McKitrick
--
My other computer is your Windows box.
More information about the freebsd-questions
mailing list