Date: Sun, 6 Mar 2005 00:06:34 -0600 From: Corey Brune <mcbrune@gmail.com> To: Dan Nelson <dnelson@allantgroup.com> Cc: freebsd-questions@freebsd.org Subject: Re: Which lib for pthreads? Message-ID: <56270537050305220638eff37f@mail.gmail.com> In-Reply-To: <20050306011827.GE2272@dan.emsphone.com> References: <20050305183226.GA47472@dogma.freebsd-uk.eu.org> <20050306011827.GE2272@dan.emsphone.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Did you try 'cc -lpthread srcfile.c'? On Sat, 5 Mar 2005 19:18:31 -0600, Dan Nelson <dnelson@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@allantgroup.com > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?56270537050305220638eff37f>