lua-users home
lua-l archive

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


On Tue, Mar 12, 2019 at 12:40 PM pierlu <pierlu@gmail.com> wrote:

> while lua being compiled within GnuGk as C++

Does that mean Lua is linked as a static library?

Then it is not surprising that a shared library that expects Lua as another shared library cannot be loaded. You need to rebuild Lua as a shared library. It might be easier to compile it wholly as C first, just to see if that fixes the problem. But since you are trying to use it in a C++ host, you will then probably need to compile it as C++, but with its API declared as extern "C".

Or you will just have to accept that you cannot load binary Lua libraries. You can instead link them to your application statically.

Cheers,
V.