title: undefined reference to symbol '_ZN5boost6system15system_categoryEv'
body: <p>All i found in Stackoverflow, nothing help in my case, maybe there is something that my eyes can't see? undefined reference to symbol occurs, when i include these headers <code>#include &lt;boost/log/expressions.hpp&gt;</code>
  <code>#include &lt;boost/log/utility/setup/file.hpp&gt;</code></p>
  
  <p>$ echo $LD_LIBRARY_PATH</p>
  
  <p>/usr/lib/x86_64-linux-gnu/</p>
  
  <pre><code>PROGNAME := "program"
  SOURCESWITHMAIN := $(wildcard src/*.cpp)
  HEADERS := $(wildcard src/*.hpp)
  HEADERS := $(patsubst src/%.hpp, inc/%.hpp, $(HEADERS))
  SOURCES := $(patsubst main.cpp, , $(SOURCESWITHMAIN))
  OBJECTS := $(patsubst src/%.cpp, obj/%.o, $(SOURCES))
  DEPENDS := $(patsubst src/%.cpp, obj/%.dep, $(SOURCESWITHMAIN))
  
  bin/PROGNAME: ./bin lib/libStat.a src/main.cpp $(HEADERS)
      @g++ -std=c++11 src/main.cpp -DBOOST_ALL_DYN_LINK -pthread -lboost_log -lboost_thread -lboost_system -lboost_log_setup -L lib -l Stat -o bin/$(PROGNAME) -I /inc -I /usr/include/boost/log/utility/setup
      @echo "Succesfully..."
  inc/%.hpp: src/%.hpp ./inc
      @ln -f $&lt; $@
  ./inc:
      @echo "inc folder created..."
      @mkdir -p inc
  ./bin:
      @mkdir -p bin
      @echo "bin folder created..."
  lib/libStat.a: ./lib $(OBJECTS)
      @ar rc lib/libStat.a $(OBJECTS)
      @echo "static lib created..."
  ./lib:
      @mkdir -p lib
      @echo "lib folder created..."
  obj/%.o: src/%.cpp
      @mkdir -p obj
      @g++ -std=c++11 -DBOOST_ALL_DYN_LINK -pthread -lboost_log -lboost_thread -lboost_system -lboost_log_setup -lboost_filesystem -c $&lt; -o $@
  
  obj/%.dep: src/%.cpp
      @mkdir -p obj
      @g++ -MM $&lt; -MT "$@ $(patsubst %.dep, %.o, $@)" -o $@
  -include $(DEPENDS)
  
  .PHONY: clean
  clean:
      @rm -rf bin/ lib/ obj/ inc/
      @echo "Cleaning..."
  
  .PHONY: push
  push:
      @git add .
      @git commit -m"some changes"
      @git push origin master
  
  .PHONY: help
  help:
      @echo "type make for compiling"
      @echo "type make clean for cleaning"
      @echo "type make push for fast pushing to repo"
  </code></pre>