|
extern
"C" { #include "lua.h" #include "lualib.h" #include "lauxlib.h"}
#include
"luabind/luabind.hpp"int main() {
lua_State *pMyLuaState = lua_open();
//Init the io, math libraries.
luabind::open(m_pMyLuaState);
int nError = lua_dofile(pMyLuaState, "yes.lua");luabind::object luaGobal = luabind::get_globals(pMyLuaState);
lua_close(pMyLuaState);
return 0;}
But I always get the following compile error:
C:\LuaBindDemo.cpp(42): error C2039: 'get_globals' : is not a member of 'luabind'
When I change the boost include path from 1_33_0 to 1_32_0, the same error shows up.
I also tried different combinations of boost, lua and luabind but nothing works so far. Do you know what's the correct way to compile luabind with VC++7.1? Thanks for your help!
Yuanming