[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Mixing wxLua and LPeg?
- From: Shmuel Zeigerman <shmuz@...>
- Date: Fri, 03 Oct 2008 12:29:56 +0300
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  seems to be the most suitable to your task.