From owner-freebsd-questions@FreeBSD.ORG Sun Mar 6 06:06:36 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E3E416A4CE for ; Sun, 6 Mar 2005 06:06:36 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id E9B5C43D53 for ; Sun, 6 Mar 2005 06:06:35 +0000 (GMT) (envelope-from mcbrune@gmail.com) Received: by wproxy.gmail.com with SMTP id 69so983481wri for ; Sat, 05 Mar 2005 22:06:35 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=sIEY7fWT06kz5obBnSHg3HOMurjEheXbdNbFYoPi3TfoFp2K3HON8jiSvlD6I/3aDtYXtCi59CvEV2oltrhhCeU5MaGbu2u/1Gz6iSvZZ8U7blXWUHSzDkTBth/vnyrR0nWcuZs2VEg+NDZjwVKULSpMLl+R8qJifmldwmJSLqk= Received: by 10.54.86.14 with SMTP id j14mr28118wrb; Sat, 05 Mar 2005 22:06:34 -0800 (PST) Received: by 10.54.4.66 with HTTP; Sat, 5 Mar 2005 22:06:34 -0800 (PST) Message-ID: <56270537050305220638eff37f@mail.gmail.com> Date: Sun, 6 Mar 2005 00:06:34 -0600 From: Corey Brune To: Dan Nelson In-Reply-To: <20050306011827.GE2272@dan.emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <20050305183226.GA47472@dogma.freebsd-uk.eu.org> <20050306011827.GE2272@dan.emsphone.com> cc: Jonathon McKitrick cc: freebsd-questions@freebsd.org Subject: Re: Which lib for pthreads? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Corey Brune List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Mar 2005 06:06:36 -0000 Did you try 'cc -lpthread srcfile.c'? On Sat, 5 Mar 2005 19:18:31 -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.*. > > -- > 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" >