undefined reference to symbol' pthread_create@@GLIBC_2.2.5'

我在ubuntu16.04上遷移工程,遇到了這個錯誤。ubuntu pthread庫不是Linux系統默認的庫,連接時須要添加-pthread參數。post 這裏注意是連接那一步添加-pthread,而不是編譯選項。spa
相關文章
相關標籤/搜索