You’ve built Lua as C or are using a liblua built as C, but trying to compile as C++.
Wrap the include with extern “C”:
extern "C" {
#include <lua.h>
}
You’ve built Lua as C or are using a liblua built as C, but trying to compile as C++.
Wrap the include with extern “C”:
extern "C" {
#include <lua.h>
}
One response to “undefined symbol: _Z14lua_pushstringP9lua_StatePKc”
Good