From owner-freebsd-questions Sat Jan 6 7: 4:25 2001 From owner-freebsd-questions@FreeBSD.ORG Sat Jan 6 07:04:23 2001 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from smtp1.mail.yahoo.com (smtp1.mail.yahoo.com [128.11.69.60]) by hub.freebsd.org (Postfix) with SMTP id 06A5A37B400 for ; Sat, 6 Jan 2001 07:04:23 -0800 (PST) Received: from unknown (HELO camelia) (195.146.61.43) by smtp.mail.vip.suc.yahoo.com with SMTP; 6 Jan 2001 15:04:20 -0000 X-Apparently-From: Message-ID: <00d301c077f1$fea7b000$0600a8c0@camelia> From: "Vahid Bohlul" To: "George Reid" Cc: References: Subject: Re: error linking pthread program. Date: Sat, 6 Jan 2001 18:34:21 +0330 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.3825.400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.3825.400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG by the way, when I compile this program on a RedHat 6.1 system, nothing goes wrong and after compiling and linking system runs fine. Vahid Bohlul Senior Software Developer DLmaker.com xypy@yahoo.com ----- Original Message ----- From: "George Reid" To: "Vahid Bohlul" Cc: Sent: Saturday, January 06, 2001 6:13 PM Subject: Re: error linking pthread program. > On Sat, 6 Jan 2001, Vahid Bohlul wrote: > > > hi all. > > has anybody encountered with this situation? > > I have written a program using posix threads. > > > > now that i compile it: > > > > gcc -I... -o ... x1.cpp x2.cpp -pthread > > You need to link with libc_r which includes the POSIX threads functions. > > G > > "And then it comes to be that the soothing light > at the end of your tunnel was just a freight > train, comin' your way." > > George Reid * greid@ukug.uk.freebsd.org _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message