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