你如何检查提振版本?
问题描述:
我需要我的Boost库的版本1.40。如何检查我的版本Boost库的?
I need to have my boost library in a version of 1.40. How do I check my version of the boost library?
我试图编译PCL库,像http://pointclouds.org/downloads/source.html.
I am trying to compile the PCL library, like described in http://pointclouds.org/downloads/source.html.
答
好了,看看你的 升压/ version.hpp
。有 BOOST_VERSION
宏是:
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