The libpthread_nonshared.a was located in /usr/lib. Sorry, i could not exactly understand what you mean by that.
Thomas Hruska wrote: > > Sathya3110 wrote: >> A multithreaded c program should be linked with libpthread.so. I found >> that >> in /usr/lib there are two pthread libs 1. libpthread.so, and 2. >> libpthread.a. But i found that there is also something called >> libpthread_nonshared.a. What is this used for? Please clarify. > > libpthread_nonshared.a is probably is the static version of the library > (i.e. code is linked into the final executable) while libpthread.a > probably makes your code dependent on libpthread.so (shared library) > being on the system. > > -- > Thomas Hruska > CubicleSoft President > Ph: 517-803-4197 > > *NEW* MyTaskFocus 1.1 > Get on task. Stay on task. > > http://www.CubicleSoft.com/MyTaskFocus/ > > > -- View this message in context: http://www.nabble.com/Question-on-pthread-library-tf4430083.html#a12639991 Sent from the C-prog mailing list archive at Nabble.com.
