How to add the boost library to a Code::Blocks project in Linux Ubuntu? For example I want to add regex
lib.
I\'ve already installed the boost library w
Just add -lboost_regex
to the link options and you should be fine. Other often used dependencies: -lboost_system -lboost_serialization -lboost_thread -lpthread -lboost_filesystem
Two steps to finish:
/usr/include/boost
. 2. Select the links you're going to use during compiling. It's default location is
/usr/lib
ATTENTION: It seems to me that the
-lboost_system
is always needed. So be careful if you need -lboost_filesystem or some libs else.