添加符号时出错:命令行中缺少DSO

use*_*872 9 c++ qt ogre

试图在Qt项目中使用Ogre.食人魔成功建立.运行项目它给我三个错误:

/usr/lib/x86_64-linux-gnu/libboost_system.so.1.54.0:-1: error: error adding symbols: DSO missing from command line
-1: error: main.o: undefined reference to symbol '_ZN5boost6system15system_categoryEv'
Run Code Online (Sandbox Code Playgroud)

当我搜索错误时,它说要编辑makefile并添加:LIBS = -lpthread

但它已经存在了.

如何解决此错误?

Kam*_*wal 18

您需要在项目中链接boost库.

添加LIBS += -lboost_system项目的专业文件.