gcc -lpthread和gcc -pthread的区别
摘要:
在编译下面的代码时,碰到了undefined reference to `pthread_atfork'的错误: 代码来自《POSIX多线程程序设计》 /* * atfork.c * Demonstrate the use of "fork handlers" to prote... 阅读全文
posted @ 2013-05-04 13:44 胡永光 阅读(189) 评论(0) 推荐(0) 编辑