Re: pthread_once
Glynn Clements <[email protected]>
| Newsgroups | gmane.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]> -- To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html