lua-users home
lua-l archive

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

Evan DeMond wrote:
I've got a project that runs on the wxLua binary, a big executable with a Lua interpreter statically linked in (to the best of my knowledge.) Now I'd like to mix in LPeg as well, which seems to want to link to its own Lua library (whether dynamically or statically, not sure.) I count two Lua interpreters getting loaded in that setup...

Am I going to have Problems? Any obvious ways around this?

You may (or may not) have problems.

Two "brute force" solutions would be:
a) either decompose wxLua from the Lua library (link dynamically), or
b) link LPeg statically into wxLua

Otherwise, some known workarounds can be found on lua-users wiki [1-4], and [4] seems to be the most suitable to your task.