LinuxSir.cn,穿越时空的Linuxsir!

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

在redhat9.0下,是不是没有函数pthread_create,pthread_join等?

[复制链接]
发表于 2004-6-1 15:26:00 | 显示全部楼层 |阅读模式
在头文件pthread.h里是不是没有pthread_create,pthread_join等函数?
gcc version 3.2.2
发表于 2004-6-1 15:38:20 | 显示全部楼层
 楼主| 发表于 2004-6-1 16:07:19 | 显示全部楼层
我编译的时候他提示出错啊!
发表于 2004-6-1 16:08:57 | 显示全部楼层
-lpthread
 楼主| 发表于 2004-6-1 16:32:37 | 显示全部楼层
是不是说在编译时用gcc t.c -o t -lpthread?
发表于 2004-6-1 17:25:49 | 显示全部楼层
最初由 neverdiechen 发表
是不是说在编译时用gcc t.c -o t -lpthread?

yes
 楼主| 发表于 2004-6-2 03:11:12 | 显示全部楼层
谢谢!
发表于 2004-7-9 15:58:20 | 显示全部楼层
同意
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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