gcc的线程,编译问题:加了-pthread选项还有 undefined reference to ✀pthread_create✀

加了-pthread选项还有 undefined reference to ✀pthread_create✀
2024-12-31 21:48:35
推荐回答(2个)
回答1:

-lpthread
注意-后边的'l'
link = 'l'

回答2:

1