[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Amalgamation
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Mon, 23 Jan 2012 08:03:57 -0200
> 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.