'pthread_getspecific@@GLIBC_2.4'

守給你的承諾、 提交于 2020-02-10 15:08:12

/opt/GSRD/gcc-linaro-arm-linux-gnueabihf-4.7-2012.11-20121123_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.7.3/../../../../arm-linux-gnueabihf/bin/ld: AsyncTCPClient.o: undefined reference to symbol 'pthread_getspecific@@GLIBC_2.4'

Makefile:526: recipe for target 'sick_safetyscanners_base-cpp' failed

/opt/GSRD/gcc-linaro-arm-linux-gnueabihf-4.7-2012.11-20121123_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.7.3/../../../../arm-linux-gnueabihf/bin/ld: note: 'pthread_getspecific@@GLIBC_2.4' is defined in DSO /opt/GSRD/gcc-linaro-arm-linux-gnueabihf-4.7-2012.11-20121123_linux/bin/../arm-linux-gnueabihf/libc/lib/arm-linux-gnueabihf/libpthread.so.0 so try adding it to the linker command line

/opt/GSRD/gcc-linaro-arm-linux-gnueabihf-4.7-2012.11-20121123_linux/bin/../arm-linux-gnueabihf/libc/lib/arm-linux-gnueabihf/libpthread.so.0: could not read symbols: Invalid operation

collect2: error: ld returned 1 exit status

make: *** [sick_safetyscanners_base-cpp] Error 1

14:09:33: 进程"/usr/bin/make"退出,退出代码 2 。

Error while building/deploying project sick_safetyscanners_base-cpp (kit: Gsrd)

When executing step "Make"

 

解决:LIBS +=  -lpthread

 

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!