S
Size: a a a
S
S
S
P
DF
DF
DF
IA
S
S
DF
DF
DF
IA
#define SOL_ALL_SAFETIES_ON 1Lua
#include "sol.hpp"
struct some_class {
int bark = 2012;
};
sol::table open_libluacpp(sol::this_state s) {
sol::state_view lua(s);
sol::table module = lua.create_table();
module["func"] = []() {
return 2;
};
module.new_usertype<some_class>("some_class",
"bark", &some_class::bark
);
return module;
}
require "libluacpp"
lua: error loading module 'libluacpp' from file './libluacpp.so':
./libluacpp.so: undefined symbol: luaopen_libluacpp
IA