Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

error adding symbols: DSO missing from command line

Tags:

c++

qt

ogre

Trying to use Ogre in the Qt project. Ogre is build succesfully. Running the project it gives me three errors:

/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'

When I searched for the error it says to edit the makefile and adding: LIBS =-lpthread

but it is already there.

How to resolve this error?

like image 692
user3877872 Avatar asked Sep 16 '14 09:09

user3877872


1 Answers

You need to link boost library in your project.

Add LIBS += -lboost_system in your project's pro file.

like image 78
Kamalpreet Grewal Avatar answered Sep 17 '22 11:09

Kamalpreet Grewal