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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.