I'm trying to compile a simple script that contains:
require 'classlib'
human = class()
function human:__init(name)
self.name = name
end
gabriel = human("Gabriel")
print(gabriel.name)
With srlua, but after compiling, when I try to run, it always gives the error:
1: Could not load package 'classlib' from path ';; C: \ Program Files \ Lua \ 5.1 \ moon \. luac
Running the script through the Lua interpreter, it works normally.
Note: all files are in the same folder (srlua, test.lua, classlib.lua)
Package.path:
;.\?.lua;G:\PROGRAMACAO\srlua\lua\?.lua;G:\PROGRAMACAO\srlua\lua\?\init.lua;G:\PROGRAMACAO\srlua\?.lua;G:\PROGRAMACAO\srlua\?\init.lua;C:\Program Files\Lua.1\lua\?.luac