lua-users home
lua-l archive

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


  I made my own lua amalgamation as part of SLB (Simple Lua Binder), it is here:

Inside that file there is one lua.c and one lua.h with the whole code
in two files.


On Mon, Jan 23, 2012 at 11:03 AM, Luiz Henrique de Figueiredo
<> 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)
  ---- ----