2010-03-03 41 views

回答

2

pthread_atfork()是POSIX規範的一部分,所以它應該存在於常規的pthread庫中。

您可能必須指定選項以編譯器&鏈接器與pthreads構建。例如,用gcc/linux下:

-pthread 
     Adds support for multithreading with the pthreads library. This option sets flags for both the 
     preprocessor and linker.