Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Mar 2005 23:39:55 +0200
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Jonathon McKitrick <jcm@FreeBSD-uk.eu.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Which lib for pthreads?
Message-ID:  <20050306213955.GA11496@gothmog.gr>
In-Reply-To: <20050306213249.GA4624@dogma.freebsd-uk.eu.org>
References:  <20050305183226.GA47472@dogma.freebsd-uk.eu.org> <20050306011827.GE2272@dan.emsphone.com> <20050306213249.GA4624@dogma.freebsd-uk.eu.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2005-03-06 21:32, Jonathon McKitrick <jcm@FreeBSD-uk.eu.org> wrote:
>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.

-lpthread should work too.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050306213955.GA11496>