[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Amalgamation
- From: Jose Luis Hidalgo <joseluis.hidalgo@...>
- Date: Wed, 25 Jan 2012 16:24:53 +0100
I placed the file alone here:
http://dl.dropbox.com/u/19162983/lua.c
I was wrong about .h, those must be kept separately, but the .c file
above is all what you need to compile lua (without the interpreter)
JL.
On Wed, Jan 25, 2012 at 4:10 PM, Jose Luis Hidalgo
<joseluis.hidalgo@gmail.com> wrote:
> Hi,
>
> I made my own lua amalgamation as part of SLB (Simple Lua Binder), it is here:
>
> http://code.google.com/p/slb/downloads/detail?name=SLB_2.0_beta_amalgamation.zip&can=2&q=#makechanges
>
> Inside that file there is one lua.c and one lua.h with the whole code
> in two files.
>
> JL.
>
>
> On Mon, Jan 23, 2012 at 11:03 AM, Luiz Henrique de Figueiredo
> <lhf@tecgraf.puc-rio.br> wrote:
>>> Sorry for the silly question, should I use it as:
>>> make one.c ?
>>
>> This almost works but you probably need at least -lm so try
>>
>> cc -o lua one.c -lm
>>
>> You may need to add one or all of "-ldl -lreadline -lncurses -Wl,-E".
>> This will build the Lua interpreter.
>>
>>> If I want to embed the amalgamation file inside another application that should be able to compile and execute lua code should I define MAKE_LUA and MAKE_LUAC?
>>
>> In this case, it seems that you want the Lua library and so
>> you need to define MAKE_LIB.
>>
>
>
>
> --
> Jose L. Hidalgo Valiño (PpluX)
> ---- http://www.pplux.com ----
--
Jose L. Hidalgo Valiño (PpluX)
---- http://www.pplux.com ----