undefined reference to 'pthread_create' 什么问题?

编译打包和其他
回复
ubuntu&Linux
帖子: 13
注册时间: 2009-11-04 21:07

undefined reference to 'pthread_create' 什么问题?

#1

帖子 ubuntu&Linux » 2009-11-18 20:20

undefined reference to 'pthread_create' 什么问题?

是不是少安装了什么?请问怎么安装?
知道的请说说吧,在线等!!!先谢谢了!解决了,呵呵
只为ubuntu而来~
头像
lovekid
帖子: 556
注册时间: 2007-03-05 11:43
联系:

Re: undefined reference to 'pthread_create' 什么问题?

#2

帖子 lovekid » 2009-11-18 20:41

虽然俺不懂linux多线程,但是俺认为,创建线程这样的函数,应该是很常用的,是不是include路径没写好?
http://andyou.3322.org/
有好东西大家共同分享!
头像
peachcolor
帖子: 898
注册时间: 2006-05-20 14:03

Re: undefined reference to 'pthread_create' 什么问题?

#3

帖子 peachcolor » 2009-11-18 20:46

编译的时候要加-lpthread
回复