/horme/wangyuchen/projects/MyWebsever/objlx64/Debug/(sql connection pool.oc: undefined reference to symbl ‘sem destroy@@GLIBC 2.2.5’
/lib/x86 64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
ld returned 1 exit status
错误如图:
整的我快脑溢血了,终于解决了。
缺少了-pthread链接库,在项目——>属性——>连接器——>库依赖项
加上pthread;即可
错误消失