lua-users home
lua-l archive

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


Tim Caswell wrote:
> I put printf statements in ll_loadfunc and it never seems to be
> called.

For symbols in the executable the lookup is performed in
lj_cf_package_loader_preload.

> I'm sure I'm missing something simple, but I can't figure it out.

You need to export the symbols from the binary. On Windows this is
done indirectly via their declaration. On Linux etc. you need to
use -Wl,-E when linking the executable.

[And yes, this is spelled out in
  doc/running.html#opt_b
from git HEAD.]

--Mike