[EMAIL PROTECTED] wrote: > James Kosin wrote: > > >> The -pthread should only be needed on IBM RS/6000 and PowerPC platforms. >> SPARC has their own option and everyone else should follow into the -l >> category. >> >> > > I suppose I should clarify the architecture. This was done on an x86. >
Manpages indicate to use -pthread to link. Linux: man pthreads Compiling on Linux On Linux, programs that use the Pthreads API should be compiled using cc -pthread FreeBSD: http://www.freebsd.org/cgi/man.cgi?query=pthread&apropos=0&sektion=0&manpath=FreeBSD+4.11-RELEASE&format=html A FreeBSD specific option has been added to gcc to make linking threaded processes simple. gcc -pthread links a threaded process against libc_r INSTEAD OF libc. Best regards, --Edwin _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://lurker.clamav.net/list/clamav-users.html