From owner-freebsd-questions Sat Jan 6 6:38:18 2001 From owner-freebsd-questions@FreeBSD.ORG Sat Jan 6 06:38:17 2001 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mta03-svc.ntlworld.com (mta03-svc.ntlworld.com [62.253.162.43]) by hub.freebsd.org (Postfix) with ESMTP id 5561137B400 for ; Sat, 6 Jan 2001 06:38:16 -0800 (PST) Received: from sobek.openirc.co.uk ([62.252.9.150]) by mta03-svc.ntlworld.com (InterMail vM.4.01.02.27 201-229-119-110) with ESMTP id <20010106143814.TSPF10171.mta03-svc.ntlworld.com@sobek.openirc.co.uk>; Sat, 6 Jan 2001 14:38:14 +0000 Date: Sat, 6 Jan 2001 14:43:10 +0000 (GMT) From: George Reid X-Sender: geeorgy@sobek.openirc.co.uk To: Vahid Bohlul Cc: freebsd-questions@freebsd.org Subject: Re: error linking pthread program. In-Reply-To: <008501c077ed$908a2160$0600a8c0@camelia> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message