Re: The C API used from C++
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: The C API used from C++
- From: Dirk Laurie <dirk.laurie@...>
- Date: 2015年1月29日 11:43:55 +0200
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 :-)