lunarmodules / luafilesystem

LuaFileSystem is a Lua library developed to complement the set of functions related to file systems offered by the standard Lua distribution.
https://lunarmodules.github.io/luafilesystem/
MIT License
907 stars 292 forks source link

undefined symbol #113

Closed wbtlb closed 6 years ago

wbtlb commented 6 years ago

after using make to compile lfs module, i get an error.

cat test.lua

package.cpath = "/test/?.so" local lfs = require "lfs" lfs.mkdir("./ttt")

output: lua: error loading module 'lfs' from file '/test/lfs.so': /test/lfs.so: undefined symbol: luaL_setfuncs stack traceback:

[C]: in function 'require'
t.lua:2: in main chunk
[C]: ?
hishamhm commented 6 years ago

this is a mixup between Lua versions (for example, you compiled with headers for Lua 5.x and are loading it from Lua 5.y)