The LuaTeX documentation says the following:
Loading dynamic Lua libraries will fail if there are two Lua libraries loaded at the same time (which will typically happen on win32, because there is one Lua 5.3 inside LuaTEX, and another will likely be linked to the dll file of the module itself).
The question simply is: How I can avoid this problem? I have compiled my own Lua outside of LuaTeX and then compiled other Lua modules against this Lua DLL with the accompanying .lib. Now I want to use this library also in LuaTeX, but I don't find ANY information on how to solve this problem.
Any help is appreciated :)
I was not specific enough. My problem is exactly the one in the quote. I am on Windows and I get the
multiple lua vms detected error, because I linked my modules DLL to the .lib of my self-compiled Lua and I'm trying to use this same DLL with LuaTeX. I already found out about
--shell-escape and it finds my DLL at the normal
LUA_PATH. But I don't know how to enable my DLL to be used with any Lua 5.3 there is.