Just a note: Some versions of gcc accept -pthread, some -pthreads, some both. Lame. In particular, from the few systems I've tested: Darwin either Solaris pthreads FreeBSD OpenBSD Linux pthread probably NetBSD, Interix, Cygwin same but I didn't check Solaris cc use -mt instead - Jay