lua-users home
lua-l archive

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


2015-01-29 11:21 GMT+02:00 Geoff Leyland <geoff_leyland@fastmail.fm>:
>> lua: error loading module 'mybinding' from file './mybinding.so':
>>    ./mybinding.so: undefined symbol: _Z15lua_createtableP9lua_Stateii
>>
>> This is clearly some C++ mangling of a call to lua_createtable.

> You could try wrapping an ‘extern “C” { … }’ around your #include “lua….h”s.  That might help?

Thanks Geoff, it does. I also needed something of the kind for the
`luaopen_...` function.

At least now I reach the Lua prompt. Nothing else works yet :-)