Re: [luabind] Compiler Errors building Luabind r507
Brought to you by:
arvidn,
daniel_wallin
From: Madhan K. <ma...@ya...> - 2008-03-27 15:20:42
|
To answer my own question: The version of Luabind I had, did not work with Lua 5.1.x. After applying the patch I found in luabind SVN for 5.1.x support, I got it compiled fine. -Madhan ----- Original Message ---- From: Madhan Kanagavel <ma...@ya...> To: lua...@li... Sent: Tuesday, March 25, 2008 11:51:52 AM Subject: Compiler Errors building Luabind r507 I am trying to build luabind r507 under Linux, gcc version 4.1.2 with Lua 5.1.3, boost 1.34.0 This combination builds and runs fine under MSVC 2005. Under Linux, when using bjam or make, I get the following: g++ -g -ftemplate-depth-100 -Wall -DLUABIND_BUILDING -c class.cpp -o class.o -I/home/shared/pgmming/estartssl/trunk/p2p/thirdparty/lua/5.1.3/src -I- -I.. -I/home/shared/pgmming/estartssl/trunk/p2p/thirdparty/boost/1.34.0/ cc1plus: note: obsolete option -I- used, please use -iquote instead ../luabind/object.hpp: In static member function âstatic void luabind::value_wrapper_traits<luabind::adl::call_proxy<ValueWrapper, Arguments> >::unwrap(lua_State*, const luabind::adl::call_proxy<W, A>&)â: ../luabind/object.hpp:723: error: âobjectâ was not declared in this scope ../luabind/object.hpp:723: error: expected `;' before âresultâ ../luabind/object.hpp:724: error: request for member âpushâ in âluabind::<unnamed>::resultâ, which is of non-class type âboost::arg<0> ()()â ../luabind/object.hpp:724: error: request for member âinterpreterâ in âluabind::<unnamed>::resultâ, which is of non-class type âboost::arg<0> ()()â make[1]: *** [class.o] Error 1 The problematic code appears to be the following template<class W, class A> static void unwrap(lua_State* interpreter, adl::call_proxy<W,A> const& proxy) { object result = const_cast<adl::call_proxy<W,A>&>(proxy); result.push(result.interpreter()); } Is there a known issue with this compiler/luabind combination? Does anyone have a recommended version set that builds under Linux using the GCC 4.x compiler. I can switch to using that version instead. Thanks to any help or pointers, Madhan |