Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Linker options for Boost

Tags:

c++

linker

boost

I'm wondering if there are any simple ways to link boost libraries (all or individual) via some entry like....

-lSDL_ttf

The above links SDL's True Type Font library. Can this be done with boost? If so, I'm not sure what file I'm linking for to link. I'm currently using boost_1_40_0.

If this isn't possible, or there are better ways to do this, I'd be happy to hear them.

P.S. I'm using the CodeBlocks IDE.

like image 229
Anonymous Avatar asked Dec 03 '25 03:12

Anonymous


1 Answers

Most boost libraries don't need to be linked as they are header only.

For those that are not header only, see the instructions here on the naming conventions and make sure you put the folder containing the boost libraries in your library search path if you want to avoid specifying it explicitly.

like image 92
Georg Fritzsche Avatar answered Dec 04 '25 23:12

Georg Fritzsche



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!