/usr/bin/ld: zdatabase.o: undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
/lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
makefile:23: recipe for target 'hello' failed
make: *** [hello] Error 1
readelf查看下pthread.so库中的symbol
看看是不是环境变量的问题,或者缺少头和库
看看是不是环境变量的问题,或者缺少头和库
个人觉得是库问题,换库,而且库的问题应该是在libpthread.so.0
应该是load的库中并没有这个函数定义。可以用readelf查看下pthread.so库中的symbol