[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: loadlib: dlopen mode
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 23 Sep 2004 09:31:30 -0300
> It there any special ideas to use RTLD_NOW instead of RTLD_LAZY ?
So that when we return from loadlib at least we "know" the library is
compatible with the current Lua core. I think Python does the same.
> I tried to load two dependent shared libraries and got an error.
You'll have to give more detail about the error.
Keep in mind that loadlib is for loading Lua libraries, not arbitrary
libraries. In other words, the init function must be a Lua C function,
LUALIB_API int luaopen_xxx (lua_State *L)
So, how can two such libraries depend on each other, since their only
public symbol is supposed to be their luaopen_xxx functions?