lua-users home
lua-l archive

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

It was thus said that the Great steve donovan once stated:
> On Tue, Mar 2, 2010 at 3:50 AM, Pan Shi Zhu <> wrote:
> > ... For Unix, we recommend that the Lua library be linked statically
> > into the host program...
> >From my experience it was better to link against the .so, because the
> static link only satisfied the Lua calls I had explicitly made. Tried
> to run some scripts and load some extensions, and couldn't find some
> symbols.  So there must be a caveat attached to this recommendation
> (unless there is some link subtlety I missed)

  There is.  When compiling your app with GCC, and compiling statically
against Lua, you need to use the "-rdynamic" option to the compiler to
export the Lua API to the extenstions.

  -spc (It should work after that ... )