pthread complie error

undefined reference to `pthread_once'

undefined reference to `pthread_create'

 

Solve the question,by install depend:

Posible1:

sudo apt-get install manpages-posix manpages-posix-dev

 

Posible 2:

my project was on QtCreator for plain c application

LIBS += -lpthread

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章