lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi,

i try to use lua. But if i do:
	luabind::open(L);
it brings a linker error. So if i do it with lua_open(L) all works, but if i 
try to luabind::function(L, "sin", &std::sin) that comes:
	
/tmp/ccYmyESX.o(.gnu.linkonce.t._ZN7luabind6detail17function_commiterIPFvvENS0_9null_typeEE6commitEP9lua_State+0x2bb): 
In function `luabind::detail::function_commiter<void (*)(), 
luabind::detail::null_type>::commit(lua_State*)':
: undefined reference to 
`luabind::detail::free_functions::function_dispatcher(lua_State*)'
collect2: ld returned 1 exit status


> Johannes Hager wrote:
> > Do you think luna isnt simpler?
>
> Luna is simple, but not easy. luna is also just a proof-of-concept
> implementation, not a fully supported product.
>
> I use luabind on a project here at work, and it's a really cool library.
> You need boost to develop, but your client doesn't need to have that
> installed.
>
> Lots of template code mean three drawbacks (but every C++ library has those
> to some degree:
> 1. Large debug symbols
> 2. Longer compile times
> 3. More difficult to read compiler errors.
>
> But you get an extremely intuitive, easy-to-use and as far as I see,
> efficient way to wrap your C++ classes. I don't think there's anything
> better.
>
> Enno.