Subj : Re: trying to learn pthreads To : comp.programming.threads From : loic-dev Date : Fri Mar 18 2005 11:11 am Hello! > g++ thread.cpp -o thread -lpthread independantly from your C mistake that generated the core dump, I would recommend to compile multi-threaded programs as follows: g++ -pthread thread.cpp -o thread The flag 'pthread' takes care of enabling certain flags for the compilation (for instance _REENTRANT or _POSIX_C_SOURCE=199506) as well linking against the right libpthread. Regards, Loic. .