require "utils.lua"stdin:1: module 'utils.lua' not found: no field package.preload['utils.lua'] no file 'D:\blizzard\Projects\Lua' no file '.\utils\lua.dll' no file 'D:\blizzard\Projects\Lua\utils\lua.dll' no file 'D:\blizzard\Projects\Lua\
require "utils.lua" stdin:1: module 'utils.lua' not found: no field package.preload['utils.lua'] no file 'D:\blizzard\Projects\Lua' no file '.\utils\lua.dll' no file 'D:\blizzard\Projects\Lua\utils\lua.dll' no file 'D:\blizzard\Projects\Lua\loadall.dll' no file '.\utils.dll' no file 'D:\blizzard\Projects\Lua\utils.dll' no file 'D:\blizzard\Projects\Lua\loadall.dll'
为什么LuaJIT搜索.dll而不是.lua以及如何解决此问题?
您应该要求utils(沟渠.lua),utils.lua应该在您的package.path变量上,或者作为LUA_PATH环境变量传递.有关07a,require()和package.path的Lua参考手册中的更多信息