I need to have my boost library in a version of 1.40. How do I check my version of the boost library?
I am trying to compile the PCL library, like described in http://pointclouds.org/downloads/source.html.
You can check version. hpp inside Boost include dir (normally /usr/include/boost , you can use locate /boost/version. hpp or similar to get that) for BOOST_VERSION or BOOST_LIB_VERSION .
Download the latest version (1.43. 0) of the Boost libraries from the Boost website and follow the steps in the getting started guide, which explains how to build Boost on a number of platforms, including Linux.
The headers should be in /usr/local/include/boost and the libs should be in /usr/local/lib.
Well, take a look at your boost/version.hpp
. There is BOOST_VERSION
macro for that:
// Example: for boost 1.55.0, taken from boost/version.hpp
// BOOST_VERSION % 100 is the patch level
// BOOST_VERSION / 100 % 1000 is the minor version
// BOOST_VERSION / 100000 is the major version
#define BOOST_VERSION 105500
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With