Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Jan 2001 18:34:21 +0330
From:      "Vahid Bohlul" <xypy@yahoo.com>
To:        "George Reid" <greid@ukug.uk.freebsd.org>
Cc:        <freebsd-questions@freebsd.org>
Subject:   Re: error linking pthread program.
Message-ID:  <00d301c077f1$fea7b000$0600a8c0@camelia>
References:  <Pine.BSF.4.21.0101061442250.44793-100000@sobek.openirc.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
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" <greid@ukug.uk.freebsd.org>
To: "Vahid Bohlul" <xypy@yahoo.com>
Cc: <freebsd-questions@freebsd.org>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00d301c077f1$fea7b000$0600a8c0>