LinuxSir.cn,穿越时空的Linuxsir!

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

链接线程库

[复制链接]
发表于 2003-10-7 11:28:43 | 显示全部楼层 |阅读模式
我要使用pthread_create函数,可是在编译地时候,报告改函数没有定义,请教应怎么解决
发表于 2003-10-7 11:54:12 | 显示全部楼层
#include <pthread.h>
编译时加上 -lpthread
发表于 2003-10-7 17:45:43 | 显示全部楼层
man pthread_create
知道要连接什么库
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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