Boost logo

Boost Users :

Subject: [Boost-users] [version] boost version check, header (.hpp) vs binaries (libs)
From: alfC (alfredo.correa_at_[hidden])
Date: 2011-01-14 16:31:20


Hi,

  I work in at least 3 computers (home/work/cluster, in which the
cluster is really a shared filesystem between different architectures,
etc). Besides that, for some projects I use the default version of
boost in that system and in others a locally (user space) installed
boost (that is, ranging from boost 1.33 to boost 1.46svn). Therefore
is not uncommon that I mess the compilation lines and end up including
headers from a certain version an linking to a different one.
Hopefully this fails at link time:

e.g. undefined reference to `boost::filesystem3::path::extension()
const'

but it is confusing and potentially it could compile (and then crash
unexpectedly)

I am aware of 'boost/version.hpp' but this is only for header
verification.
The question is, is there a Boost mechanism to verify that the header
and the library in boost are consistent? (Hopefully at compile/link
time)

Thank you,
Alfredo


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net