-
Автор темы
- #1
Does anyone know anything about connecting luajit to c++ dll program to get ffi working?
Currently i have working lua api and i can load luas but whenever i try to load luas which includes ffi im getting these errors:
local ffi attempt to index a boolean value
module 'ffi' not found: no field package.preload['ffi']
This is my lua initialization:
I already have included luajit.lib but still its not working. Getting the errors mentioned above.
If someone could help i apperciate help & answers.
Currently i have working lua api and i can load luas but whenever i try to load luas which includes ffi im getting these errors:
local ffi attempt to index a boolean value
module 'ffi' not found: no field package.preload['ffi']
This is my lua initialization:
Код:
lua = sol::state(sol::c_call<decltype(&lua_panic), &lua_panic>);
lua.open_libraries (sol::lib::base, sol::lib::ffi, sol::lib::jit, sol::lib::string, sol::lib::math, sol::lib:: table, sol::lib::debug, sol::lib: :package);
If someone could help i apperciate help & answers.