Page MenuHome

Fix r49225 (BOOST_VERSION isn't set!)
Closed, ResolvedPublicPATCH

Description

So it started with my patch: http://projects.blender.org/tracker/index.php?func=detail&aid=32074&group_id=9&atid=127

But apparently people still use ancient distros and thus r49225 was committed. However, while checking against BOOST_VERSION, it never actually is set! My patch fixes that and should make everyone happy.

Event Timeline

I don't know if your patch is really necessary because r49225 can be built with Boost 1.42 on Ubuntu 11.04, but explicitly including boost/version.hpp is good idea.

Ahh, BOOST_FILESYSTEM_VERSION will be set appropriately in boost/filesystem.hpp, so the build goes well on older system though the following code makes no sense:

#if (BOOST_VERSION < 104400)
# define BOOST_FILESYSTEM_VERSION 2
#endif

Another solution is to remove the above code.

It cannot be built on recent Boost versions, that is the problem. The macro is never expanded.

Congratulations! Your patch has been committed to the official
Blender SVN Tree!

Lukas Tönne (lukastoenne) changed the task status from Unknown Status to Resolved.Jul 29 2012, 3:53 PM