[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: How to make a static Lua?
- From: Paul K <paul@...>
- Date: Mon, 18 Apr 2016 16:54:54 +0000
> So if my Lua module was built with Lua 5.2 for Windows, it will have an import blob that says "load lua52.dll, find lua_verison, lua_tonumber, etc in its export section and use them". Having those same functions exported from my host.exe is useless, because the loader won't even look there.
Right, on Windows you'd need to have a proxy DLL that will forward
those requests to the exported functions in the main executable. See
http://lua-users.org/wiki/LuaProxyDllFour and this thread for the
related discussion:
http://lua-users.org/lists/lua-l/2013-11/msg00831.html
Paul.