From owner-freebsd-questions@FreeBSD.ORG Sat Apr 12 12:38:42 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 5F27D37B408 for ; Sat, 12 Apr 2003 12:38:42 -0700 (PDT) Received: from dc-mx11.cluster1.charter.net (dc-mx11.cluster1.charter.net [209.225.8.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7767943F93 for ; Sat, 12 Apr 2003 12:38:41 -0700 (PDT) (envelope-from kg4gkg@charter.net) Received: from [66.191.192.173] (HELO ranger187) by dc-mx11.cluster1.charter.net (CommuniGate Pro SMTP 3.5.9) with SMTP id 71587937 for freebsd-questions@freebsd.org; Sat, 12 Apr 2003 15:38:40 -0400 Message-ID: <000c01c3012b$20b2b4f0$6401a8c0@ranger187> From: "Shaun W. Grogan" To: References: <000501c30113$d1f72fb0$6401a8c0@ranger187> <000701c30115$846f6620$f300a8c0@mrblossom> Date: Sat, 12 Apr 2003 15:38:43 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 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 19:38:42 -0000 Well the main.c calls for pthread_create and pthread_join. Do I need to change that to something else? ----- Original Message ----- From: "Markie" To: "Shaun W. Grogan" Cc: Sent: Saturday, April 12, 2003 1:03 PM Subject: Re: pthread > I think you need to compile with -pthread, not -lpthread like Linux uses... > maybe :) > > ----- Original Message ----- > From: "Shaun W. Grogan" > To: > Sent: Saturday, April 12, 2003 5:51 PM > Subject: pthread > > > > 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' > > > > _______________________________________________ > > 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" > > > > _______________________________________________ > 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"