#define SOL_ALL_SAFETIES_ON 1 #include #include int main(int, char*[]) { std::cout << "=== opening a state ===" << std::endl; sol::state lua; // open some common libraries lua.open_libraries(sol::lib::base, sol::lib::package); lua.script("print('bark bark bark!')"); std::cout << std::endl; return 0; }