LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1925|回复: 2

编译线程程序时遇到的错误:undefined reference to 'pthread_create'

[复制链接]
发表于 2006-4-22 10:57:58 | 显示全部楼层 |阅读模式
我最近在FC3上练习编写线程程序,编译时出现错误提示:undefined reference to 'pthread_create'

我已经包含了头文件 <pthread.h> 了啊,为什么还提示这样的错误呢?

谢谢!
发表于 2006-4-22 11:27:30 | 显示全部楼层
编译的时候没有链接  libpthread.so。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-23 18:51:51 | 显示全部楼层
非常感谢 kj501 !!!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表