Re: pthread_once

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <glynn@xxxxxxxxxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Assembler]     [Git]     [Kernel List]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [C Programming]     [Yosemite Campsites]     [Yosemite News]     [GCC Help]

  Powered by Linux