You need to include the header file in the application and a link to it.
See how to use libraries in shared libraries and Linux METHODS .
, ( ), , , -I/path/to/include , .
. , -L/path/to/lib , , -l<libname>, <libname> - lib, . libboost_serialization-d-1_34_1.so, -lboost_serialization-d-1_34_1
:
g++ -I/sw/include -Wall -g -I/usr/local/include/boost-1_36/ -c main.cpp -o main.o
g++ -L/sw/lib -lboost_serialization-d-1_34_1 -o x main.o