lua-users home
lua-l archive

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


> Was the intent for the developer to copy and/or modify linit.c for each 
> project which required more or different libs?

Yes, if the user libraries are static. If you use lua.c then all you
need to do is to link lua.o with your linit.o and of course with
lualib.a. If you use your own main, then link with your linit.o and call
luaL_openlibs (perhaps from inside a lua_cpcall, like lua.c does).
That is why linit.c is a separate module, not a part of lua.c as it used to be.
--lhf