I want to write a C++-Program that can interact/call Lua-scripts during execution. A key concept of the program is complete platform independence, but I seem to be unable to locate a Lua-build that actually offers something that.
The Lua-builds I found so far are either based on environment-variables or specific libraries like .lib
, .dll
or .so
. The official Lua-source from lua.org also is not what I'm looking for as it defines a main-function…
Is there a simple - best case would be something like sqlite-amalgamation - Lua-interpreter for C/C++ that doesn't have any of these dependencies?
lua.c contains main and defines the entry point for a console application. If you remove it from the project, whats left builds into a standalone lib, or dynamic library if you prefer, just fine.