Linux – How to add the boost library to Code::Blocks in Linux

How to add the boost library to Code::Blocks in Linux… here is a solution to the problem.

How to add the boost library to Code::Blocks in Linux

How do I add the boost library to the Code::Blocks project in Linux Ubuntu? For example, I want to add a regex library.

I have the boost library installed:

sudo apt-get install libboost-all-dev

The complete example of how to will be the most value.

Solution

Just add -lboost_regex to the link options and you’re good to go. Other commonly used dependencies: –lboost_system -lboost_serialization -lboost_thread -lpthread -lboost_filesystem

Related Problems and Solutions