error LNK2001: unresolved external symbol __imp__pthread_join和 __imp__pthread_create

error LNK2001: unresolved external symbol __imp__pthread_join和 __imp__pthread_create

C語言項目報出error LNK2001: unresolved external symbol __imp__pthread_join和error LNK2001: unresolved external symbol __imp__pthread_create錯誤怎麼解決?
在文件頭部加入
#pragma comment(lib, “pthreadVC2.lib”)
即可build通過。

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