[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: How to add users libraries
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 30 Nov 2005 21:29:28 -0200
> 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