Which lib for pthreads?

Corey Brune mcbrune at gmail.com
Sat Mar 5 22:06:36 PST 2005


Did you try 'cc -lpthread srcfile.c'?


On Sat, 5 Mar 2005 19:18:31 -0600, Dan Nelson <dnelson at allantgroup.com> 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.*.
> 
> --
>         Dan Nelson
>         dnelson at allantgroup.com
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
>


More information about the freebsd-questions mailing list