Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how do you check your version of boost? [duplicate]

Tags:

boost

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.

like image 578
laksh Avatar asked Jul 10 '11 07:07

laksh


People also ask

How do I know which version of boost I have?

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 .

How do I update my boost library?

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.

Where is boost installed on Mac?

The headers should be in /usr/local/include/boost and the libs should be in /usr/local/lib.


1 Answers

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
like image 134
Karl von Moor Avatar answered Sep 21 '22 12:09

Karl von Moor