Re: Compiling Luabind in MacOSX 10.5

Daniel Wallin <[email protected]>
Newsgroups gmane.comp.lang.lua.bind.user
Message-ID <[email protected]>
David Huynh wrote:
> Hi guys,
> I've been trying to compile luabind on my macbook for a good week now, but
> I'm kinda lost and I'm not sure what's wrong with my build.
[... snip error ...]
> Any thoughts?

Yes, someone had this problem on IRC yesterday. I just checked in this
fix to the 0.8 branch:

diff --git a/luabind/detail/policy.hpp b/luabind/detail/policy.hpp
index d011db8..83bb3dd 100644
--- a/luabind/detail/policy.hpp
+++ b/luabind/detail/policy.hpp
@@ -1044,7 +1044,7 @@ namespace detail
 namespace luabind { namespace
 {
 #if defined(__GNUC__) && \
-  (__GNUC__ * 100 + __GNUC_MINOR__ <= 400 || BOOST_VERSION <= 103401)
+  (__GNUC__ * 100 + __GNUC_MINOR__ < 400 || BOOST_VERSION <= 103401)
   static inline boost::arg<0> return_value()
   {
          return boost::arg<0>();


-- 
Daniel Wallin
BoostPro Computing
http://www.boostpro.com

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.