Fix FTBFS with Boost 1.49.0
Peter Colberg <[email protected]> Thu, 15 Mar 2012 18:08:00 -0400
| Newsgroups | gmane.comp.lang.lua.bind.user |
|---|---|
| Message-ID | <20120315220800.GA17047@alcyone> |
Hi,
Luabind fails to build with Boost 1.49.0 and GCC.
I have fixed this issue in commit 085f2e0 [1] at
http://git.colberg.org/luabind.git
For convenience, a snapshot tarball can be obtained at
http://sourceforge.net/projects/halmd/files/libs/luabind/
For information on the other patches contained in the repository, see
http://article.gmane.org/gmane.comp.lang.lua.luabind/2982
http://article.gmane.org/gmane.comp.lang.lua.luabind/2924
Regards,
Peter
[1]
The implementation of BOOST_PP_ITERATION_FLAGS() changed in Boost 1.49.0,
which causes Luabind to fail to build with GCC (reproduced with GCC 4.4
and GCC 4.6).
https://svn.boost.org/trac/boost/ticket/6631
http://thread.gmane.org/gmane.comp.lib.boost.devel/228802
http://article.gmane.org/gmane.comp.lib.boost.devel/228836
The work-around is to replace the pattern
#if !defined(MACRO)
// A
#elif MACRO()
// B
#endif
with
#if !defined(MACRO)
// A
#else
#if MACRO()
// B
#endif
#endif
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure