lua-users home
lua-l archive

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





2014-05-31 1:56 GMT+08:00 Tom N Harris <telliamed@whoopdedo.org>:
On Friday, May 30, 2014 07:26:16 PM Xavier Wang wrote:
> what about just dist lua in this format? do not offer lua52.dll, but just
> lua.exe (and can add icon and manifest to use XP style, just like the one
> above), and all C module are linked against .exe but not .dll, for
> compatible case we can offer a lua52.dll for bridge.

What if I want to embed Lua in my "Really Cool Application"(tm)? Lua modules
won't know about "ReallyCool.exe" only lua.exe. I would still need to provide
a forwarder DLL. Because exported symbols are bound to the name of the
exporting module, I either have to rebuild every module for each program I
want to use it with, or just export from a DLL with a well-known name that is
common to all programs.

--
tom <telliamed@whoopdedo.org>



You can still link to lua.exe (and make you ReallyCool.exe link to lua.exe), and linker will find lua.exe and use it's symbol for you.

there is another goodness: your module can link with lua.exe, ReallCool.exe or lua52.dll, lua523.dll or lua5.2.dll or lua5.2.3.dll, all that can be a forwarder, so you needn't rebuild existing module, even if they linked to other different dll/exe.

--
regards,
Xavier Wang.