解决方法: a.需要在编译时添加-lpthread参数 $ g++ XXXXX.cpp -lpthread -o XXXXX.o b.在eclipse中配置 project>properties>c/c++Build>GCC C++Linker>Libraries 在Libraries(-l)中添加pthread 在Libraries search path(-L)中添加crypto