Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Boost requires compiled libraries like libboost_date_time for even basic things. How do I eliminate dependencies on building those libraries?

Tags:

boost

I want a header-only BOOST.

Using boost::bind and boost::ptr_set, it seems unnecessary to depend on libboost_date_time and libboost_regex. But I get a linker error for those libraries when I build.

LINK : fatal error LNK1104: cannot open file 'libboost_date_time-vc90-mt-s-1_47.lib'
like image 243
unixman83 Avatar asked Dec 11 '25 15:12

unixman83


1 Answers

Geenrally you can #define BOOST_ALL_NO_LIB to disable the auto-linking of the MSVC compiler you are using as documented (see Boost.Config). But of course you still have to compile and link the libraries you do use. Which if you are getting those errors it means that you are likely using the libraries.

like image 70
GrafikRobot Avatar answered Dec 15 '25 20:12

GrafikRobot



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!