'pthread_getspecific@@GLIBC_2.4'

/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

 

你可能感兴趣的:(软件开发工具,嵌入式,QT,高级程序设计)