My script runs fine when I execute it from outside the application (terminal), but when its called from inside the C++ application it shuts down in the require("luasql.mysql") call.
Can anyone help?
My script runs fine when I execute it from outside the application (terminal), but when its called from inside the C++ application it shuts down in the require("luasql.mysql") call.
Can anyone help?
The package.cpath and package.path must be set inside the script to load the modules that are installed. So package.cpath must have the folders that lua can check for the clibs to load them, and the same for package.path, but this time to load lua modules or files.