Luabind xcode

Nibbie
Posts: 1
Joined: 2009.07
Post: #1
Hi,

I would like to use luabind together with lua 5.1.4 in xcode but unfortunatelly I can't get it to work. Lua alone works fine. In terms of luabind, i didn't build any of it because I simply don't get how to do it. instead I tried to link the headerfiles directly in xcode which works fine (at least I don't get any linking errors). Anyways, I get quite alot of template based errors where I don't know where they are coming from. Did anybody manage to use luabind on a mac? Or maybe even build it to a dylib, or framework?
Google almost gave me nothing on this subject. thanks!
Quote this message in a reply
Apprentice
Posts: 17
Joined: 2007.02
Post: #2
I had the same problem. Did you undef check and nil? If not you can do it by going into luabind.h and making it look like this:
Code:
#ifndef LUABIND_BIND_HPP_INCLUDED
#define LUABIND_BIND_HPP_INCLUDED

#ifdef check
#undef check
#endif

#ifdef nil
#undef nil
#endif

#include <luabind/config.hpp>
#include <luabind/class.hpp>
#include <luabind/function.hpp>
#include <luabind/open.hpp>

#define check

#define nil

#endif // LUABIND_BIND_HPP_INCLUDED
Quote this message in a reply
Post Reply