lua-users home
lua-l archive

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

> 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,
that is

	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?