From owner-freebsd-questions Sat Jan 6 6:59:38 2001 From owner-freebsd-questions@FreeBSD.ORG Sat Jan 6 06:59:32 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 6494D37B402 for ; Sat, 6 Jan 2001 06:59:32 -0800 (PST) Received: from unknown (HELO camelia) (195.146.61.43) by smtp.mail.vip.suc.yahoo.com with SMTP; 6 Jan 2001 14:59:30 -0000 X-Apparently-From: Message-ID: <00c101c077f1$51902a00$0600a8c0@camelia> From: "Vahid Bohlul" To: References: Subject: Re: error linking pthread program. Date: Sat, 6 Jan 2001 18:29:44 +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 but, in man page of gcc it is explicitly expressed that developer should use -pthread instead of -lc_r. by the way, I have done it and the errors are still there. additionaly some warnings appears too. --vahid ----- Original Message ----- From: "George Reid" To: "Vahid Bohlul" Cc: "George Reid" Sent: Saturday, January 06, 2001 6:19 PM Subject: Re: error linking pthread program. > On Sat, 6 Jan 2001, Vahid Bohlul wrote: > > > hi, > > could you be more specific? > > thank you. > > --vahid. > > > > > gcc -I... -o ... x1.cpp x2.cpp -pthread > > Ooops, I didn't notice that "-pthread" is totally bogus. On Linux you > would use "-lpthread", on FreeBSD you need to pass "-lc_r" to the compiler > or linker. > > 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