lua-users home
lua-l archive

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


i try to use lua. But if i do:
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:
In function `luabind::detail::function_commiter<void (*)(), 
: undefined reference to 
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.