默认的编译选项是没有pthread的,所以要自己添加:

参考:http://hi.baidu.com/u_soa/item/9d6cc40b7e9d76eb3499024d

错误:

undefined reference to 'pthread_create'

解决:

Project -> Build options -> Linker settings -> Link libraries 里加上pthread

这样就解决啦!非常感谢老游网友!

相关文章:

  • 2021-09-16
  • 2022-12-23
  • 2021-10-18
  • 2021-08-09
  • 2021-12-13
  • 2021-09-18
猜你喜欢
  • 2021-06-17
  • 2021-05-03
  • 2021-07-21
  • 2021-05-28
  • 2021-12-17
  • 2021-08-05
相关资源
相似解决方案