Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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 with:

sudo apt-get install libboost-all-dev

Full example how to will be most valuable.

like image 867
Egel Avatar asked Dec 04 '25 13:12

Egel


1 Answers

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

like image 164
sehe Avatar answered Dec 07 '25 06:12

sehe



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!