[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lua-l
Subject:    Re: Amalgamation
From:       Jose Luis Hidalgo <joseluis.hidalgo () gmail ! com>
Date:       2012-01-25 15:24:53
Message-ID: CAMPPuOpsUZXcZF-Mi4QASM_4pBM+LxMtqB=c6qh65WuhDudX8w () mail ! gmail ! com
[Download RAW message or body]

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 ----


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic