lua-users home
lua-l archive

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


Am 2012-08-04 11:12, schrieb Doug:
Binding everything up and statically linking the extension to the
binary does seem to be the only way to make it work properly.
[...]
Deeply frustrating to work with.

Exactly my experience, too.

It would help if Lua kept no internal static state, but it seems that the real problem is that DLLs under Windows and SOs under Linux (my main platforms, can't say much about others) are different enough so that "portable" support in an advanced application/setting for both is very problematic. Especially "mixing" is difficult: Linking everything statically or linking "everything" dynamically seems to work out relatively naturally, but linking the main application statically and using DLLs/SOs only for extensions/"plugins" comes with an astonishing number of platform-specific differences, and it is very hard to deal with all of them combined.

Best regards,
Carsten



--
   Cafu - the open-source Game and Graphics Engine
for multiplayer, cross-platform, real-time 3D Action
          Learn more at http://www.cafu.de