lua-users home
lua-l archive

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

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