undefined reference to 'pthread_setspecific '

今天在编译getst的时候遇到了这个神奇的问题。我加的编译选项是-lpthread编译不过时。ubuntu

后来编译选项改成了-pthread就编译过了。get

好神奇。编译

g++ 版本是4.8.4 thread

ubuntu版本是14.04.3版本

相关文章
相关标签/搜索