Subj : Re: creating library to be used in threaded and nonthreaded apps To : comp.programming.threads From : Chris Friesen Date : Thu Apr 28 2005 10:15 pm Ian wrote: > If your library is thread safe and doesn't use any thread calls, why > would the user require libpthread? I was under the impression that in order to build my library such that it is suitable for use in threaded apps, I needed to build with "-pthread". This ends up creating a dependency on pthreads even if I don't use any thread calls. Can I get away with building the library without any special flags and link it into a threaded app? I thought there was stuff like "errno" that got handled differently based on compiler flags (or is that not applicable anymore?) Chris .