Closed Fordi closed 6 years ago
By adding the following after #include <lua.hpp>
in external_script_dialog.cpp
, I can build with LuaJIT:
extern "C" {
#include <lua.h>
}
Dunno if that's a dirty hack or not, since lua.hpp
includes lua.h
the same way, I assume to get lua.h
's symbols into the cpp file including it.
Discovered this was environmental, due to my having a locally-built lua 5 in /usr/local. Closing.
Building on Ubuntu 17.10, confirmed necessary packages are present.
When building with
cmake ..
, build fails with the following error:With
cmake -DSOLARUS_USE_LUAJIT=OFF ..
, build succeeds.