Re: Segmentation Fault
Znadul <[email protected]>
| Newsgroups | gmane.comp.lang.lua.bind.user |
|---|---|
| Message-ID | <[email protected]> |
Daniel Wallin escribió:
> Znadul wrote:
>
>> Hi all in my first message,
>>
>> there is my trouble, so simple:
>>
>> extern "C" {
>> #include <lua5.1/lua.h>
>> #include <lua5.1/lualib.h>
>> #include <lua5.1/lauxlib.h>
>> }
>>
>> #include <luabind/luabind.hpp>
>>
>>
>> int main(int argc, char** argv)
>> {
>> lua_State *L = lua_open();
>>
>> luaL_openlibs( L );
>> luabind::open( L );
>> }
>>
>>
>>
>> g++ test.cpp -o test -llua5.1 -lluabind
>>
>> ./test
>>
>> Segmentation fault
>>
>>
>> Im using debian lenny lua5.1 and luabind0 deb packages.
>>
>> Any idea?
>>
>
> I'm not sure, but I think the luabind package is version 0.7 and that it
> links to lua5.0. I suggest using luabind 0.8 and building it yourself.
>
>
In fact,
Package: libluabind0
Priority: optional
Section: libs
Installed-Size: 188
Maintainer: Arthur Loiret <[email protected]>
Architecture: i386
Source: luabind
Version: 0.7.dfsg-5
debian package for 0.8 its not up yet but anyway im working well (or at
least it seems) using luabind without
luabind::open( L );
I mean i remove this line and im using now in example
luabin::call_function and its working well, strange? or not?
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H