星期六, 12月 26, 2009

undefined reference to `pthread_create'

Linux中編譯pthread需要加上參數,參考man pthreads

Compiling on Linux
On Linux, programs that use the Pthreads API should be compiled using cc
-pthread.

沒有留言: