1. 问题


报错:
Linux编译报错:“......undefined reference to symbol ‘[email protected]@GLIBC_2.4.....”


2. 真因


因为调用线程相关(pthread)函数。


3. 解决方案


修改makefile文件,在arm-linux-gnueabihf-gcc后面加上-lpthread

再编译,OK.

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-03
  • 2022-12-23
  • 2021-04-16
  • 2022-12-23
  • 2021-10-08
  • 2022-01-07
猜你喜欢
  • 2021-05-05
  • 2021-05-20
  • 2021-06-28
  • 2021-03-31
  • 2021-04-15
  • 2021-06-13
  • 2022-12-23
相关资源
相似解决方案