Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Dec 2002 11:40:27 +1000 (EST)
From:      Ian Lister <freebsd-lists@lister.dnsalias.net>
To:        Emiel Kollof <coolvibe@hackerheaven.org>
Cc:        freebsd-stable@FreeBSD.ORG
Subject:   Re: pthread woes
Message-ID:  <Pine.BSF.4.44.0212201138200.44616-100000@sapporo.home>
In-Reply-To: <20021220013445.GA75547@hackerheaven.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 20 Dec 2002, Emiel Kollof wrote:
>I have a problem with compiling stuff that uses POSIX threads. I used
>the following snippet of code to test:

>% gcc test.c -o test.c

>It compiles fine when I use -lc_r. This also breaks a lot of ports. What's
>going on?

pthread(3) notes that there is is -pthread option to gcc to save you
needing to link with -lc_r explicitly.

Ian


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.44.0212201138200.44616-100000>