> and the lua wrapper like this. > > -- in lext.lua > module(..., package.seeall) > local f = assert(package.loadlib("./lext.so", "luaopen_lext")) > return f() There is no need for this wrapper. Just do require'lext'.