[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Build requirements for threaded code?
- From: Braden McDaniel <braden endoframe com>
- To: Development discussions related to Fedora <fedora-devel-list redhat com>
- Subject: Re: Build requirements for threaded code?
- Date: Wed, 19 Aug 2009 22:47:54 -0400
On Wed, 2009-08-19 at 20:32 -0400, Sam Varshavchik wrote:
> Tom Lane writes:
>
> > This might be a stupid question, but: what compile and link options
> > are necessary nowadays for multithreaded code? I see various references
> > to -pthread and -lpthread, but it's hard to be sure what's
> > authoritative.
>
> Just -lpthread does the trick for me. The -pthread option is needed on other
> platform, not Linux.
>From "man 7 pthreads":
On Linux, programs that use the Pthreads API should be compiled using
cc -pthread.
--
Braden McDaniel <braden endoframe com>
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]