From owner-freebsd-questions@FreeBSD.ORG Sat Apr 12 13:36:57 2003 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 A72C537B401 for ; Sat, 12 Apr 2003 13:36:57 -0700 (PDT) Received: from mail.gmx.net (imap.gmx.net [213.165.65.60]) by mx1.FreeBSD.org (Postfix) with SMTP id 84CC843F3F for ; Sat, 12 Apr 2003 13:36:56 -0700 (PDT) (envelope-from blueeskimo@gmx.net) Received: (qmail 13622 invoked by uid 65534); 12 Apr 2003 20:36:54 -0000 Received: from i216-58-29-174.gta.igs.net (EHLO [216.58.29.174]) (216.58.29.174) by mail.gmx.net (mp010-rz3) with SMTP; 12 Apr 2003 22:36:54 +0200 From: Adam To: freebsd-questions@freebsd.org In-Reply-To: <000501c30113$d1f72fb0$6401a8c0@ranger187> References: <000501c30113$d1f72fb0$6401a8c0@ranger187> Content-Type: text/plain Organization: Message-Id: <1050179813.64457.82.camel@jake> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.4 Date: 12 Apr 2003 16:36:53 -0400 Content-Transfer-Encoding: 7bit Subject: Re: pthread X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Apr 2003 20:36:57 -0000 On Sat, 2003-04-12 at 12:51, Shaun W. Grogan wrote: > I am trying to compile an application on FreeBSD 5 that was originally > written and tested on Linux. It is bombing when calling for a function > pthread_create and pthread_join. I see there is a man on my system for > pthread_create.3 but I see no way of enabling this function. A search of my > system for pthread_create turns up nothing but man pages. Does anyone have > any suggestions? Below is the messgae I"m getting when compiling. > > /usr/home/shaung/tlf-0.8.19/src/main.c:527: undefined reference to > `pthread_create' > /usr/home/shaung/tlf-0.8.19/src/main.c:535: undefined reference to > `pthread_create' > /usr/home/shaung/tlf-0.8.19/src/main.c:542: undefined reference to > `pthread_join' > /usr/home/shaung/tlf-0.8.19/src/main.c:543: undefined reference to > `pthread_join' > Make sure you are including , and when compiling you need to add -pthread on your $CCFLAGS .. -- Adam