Re: pthread_once

Glynn Clements <[email protected]> Fri, 24 Sep 2010 18:59:09 +0100
Newsgroups org.kernel.vger.linux-c-programming
Message-ID <[email protected]>
Ardhan Madras wrote:

> > pthread_once is defined in libpthread, which you should be linking
> > against if you're using librt.
> 
> Sory but did you mean we also need linking to libpthread when using librt?

Yes; librt requires libpthread. If you use shared libraries, it should
get linked automatically, but that doesn't work with static libraries.

-- 
Glynn Clements <[email protected]>