Subj : Re: Where to download a pthread library To : comp.programming.threads From : David Schwartz Date : Tue Mar 29 2005 01:55 pm "Sean" wrote in message news:d2chta$778$1@mailhub227.itcs.purdue.edu... > David Schwartz wrote: >> It's just not called that on FreeBSD. You should still have a >> 'pthread.h' header file and compiling with '-pthread' should work. If >> not, > Thanks, I used -lpthread which didn't work. Now it works well. > By the way, is this the convention for FreeBSD linker? The '-lpthread' flag is not a convention or standard at all. Many platforms require more than just linking in an additional library, they need compiler flags (like -D_REENTRANT) as well. The standard is '-pthread' to do whatever is needed for both the compiler and linker to support pthreads. FreeBSD was very slow to adopt this standard due to some confusion. You should look it up in your documentation. DS .