Undefined reference to the symbol "_ZN5boost6system15system_categoryEv"

I am new to C ++ rest sdk Casablanca and use it in Codelite ide .
Operating System : Arch Linux
gcc version : 6.1.1
When creating the code, I get the following error in debug mode:

 /bin/sh -c '/usr/bin/make -j4 -e -f Makefile' ----------Building project:[ Casa - Debug ]---------- make[1]: Entering directory '/home/vinci/Documents/CPP_Projects_Programs/Casa' /usr/bin/g++ -c "/home/vinci/Documents/CPP_Projects_Programs/Casa/main.cpp" -g -O0 -fopenmp -std=c++14 -std=c++11 -Wall -o ./Debug/main.cpp.o -I. -I/usr/local/include/cpprest -I/usr/local/include/pplx -I/home/vinci/casablanca/Release/src -I. -I/usr/local/include/cpprest -I/usr/local/include/pplx /usr/bin/g++ -o ./Debug/Casa @"Casa.txt" -L. -L/usr/local/lib -L/usr/lib64 -L/usr/lib -lcpprest /usr/bin/ld: ./Debug/main.cpp.o: undefined reference to symbol '_ZN5boost6system15system_categoryEv' /usr/lib/libboost_system.so.1.60.0: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make[1]: *** [Casa.mk:79: Debug/Casa] Error 1 make[1]: Leaving directory '/home/vinci/Documents/CPP_Projects_Programs/Casa' make: *** [Makefile:5: All] Error 2 ====1 errors, 0 warnings, total time: 00:00:14 seconds==== 

I searched this on Stackoverflow before asking, and most of the answers just pointed to the correct library linking in the project settings, and I did it, as you can see in the above code, but it still keeps giving an error, I know that I am missing ?

A little help would be appreciated ... Thank you.

+5
source share
1 answer
 /usr/lib/libboost_system.so.1.60.0: error adding symbols: DSO missing from command line 

This DSO error means libboost_system is missing from the command line. You should also add:

 -lboost_system 

on the command line like -lcpprest

+9
source

All Articles