Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Jan 2001 18:29:44 +0330
From:      "Vahid Bohlul" <xypy@yahoo.com>
To:        <freebsd-questions@freebsd.org>
Subject:   Re: error linking pthread program.
Message-ID:  <00c101c077f1$51902a00$0600a8c0@camelia>
References:  <Pine.BSF.4.21.0101061448580.45098-100000@sobek.openirc.co.uk>

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




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