Well that is awckward, says io isn't found after i compiled it as windows desktop static, any reason why?
It says attemp to use global io, anything i can do about it? in the text editor tho it runs just fine.
io not found error
Remember, standard Lua modules are only available when compiling to dynamic runtime (Lua54.dll).
When compiling static exe, the executable won't need Lua54.dll.
All this reminds me of probably leaving the default "os" and "io" modules (and maybe "utf8") with all versions of the LuaRT runtime, to simplify PUC Lua compatibility...
The procedure entry point File_close could not be located in the dynamic link library
Path\to\exe
Huh?
I didn't move it if its what you mean
- Edited
When compiling to dynamic runtime library your compiled executable needs Lua54.dll in the same folder to be executed.
If you're on LuaRT Studio copy the Lua54.dll from the bin\ folder to where your executable is.
If you use LuaRT, copy the Lua54.dll from the bin\std\ folder to where your executable is.
Ooooh so it needs the lua54dll in the same folder, i see, thanks for the info then
You're welcome, hope it fixed the error !