用make进行编译的时候,提示error adding symbols

报错信息:
/usr/bin/ld: //usr/local/lib/libceres.a(evaluator.cc.o): undefined reference to symbol 'pthread_rwlock_wrlock@@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
尝试了网上很多种方法都没有解决,希望得到帮助,谢谢!

https://blog.csdn.net/yzy1103203312/article/details/78579778

检查编译时是否指定了库pthread,编译时具体要加option是-lpthread
最终格式如:gcc ... -lpthread ...