I have heard of using LuaJIT to compile Lua code into bytecode and then into a static library.
Ideally I would want to be able to compile the Lua code into a dynamic library so I don't have to rebuild the main executable.
Can you compile Lua into a dll? If so how do you link it to c++ code since there's no headers? Finally how would you run the Lua scripts from inside the program?