Ubuntu中文论坛
致力于Ubuntu中文推广
http://forum.ubuntu.com.cn/
undefined reference to 'pthread_create' 什么问题?
http://forum.ubuntu.com.cn/viewtopic.php?t=242626
分页:
1
/
1
undefined reference to 'pthread_create' 什么问题?
发表于 :
2009-11-18 20:20
由
ubuntu&Linux
undefined reference to 'pthread_create' 什么问题?
是不是少安装了什么?请问怎么安装?
知道的请说说吧,在线等!!!先谢谢了!
解决了,呵呵
Re: undefined reference to 'pthread_create' 什么问题?
发表于 :
2009-11-18 20:41
由
lovekid
虽然俺不懂linux多线程,但是俺认为,创建线程这样的函数,应该是很常用的,是不是include路径没写好?
Re: undefined reference to 'pthread_create' 什么问题?
发表于 :
2009-11-18 20:46
由
peachcolor
编译的时候要加-lpthread