目录 1. 问题2. 真因3. 解决方案 1. 问题 报错: 2. 真因 因为调用线程相关(pthread)函数。 3. 解决方案 修改makefile文件,在arm-linux-gnueabihf-gcc后面加上-lpthread 再编译,OK.