Tag Archives: lua

undefined symbol: _Z14lua_pushstringP9lua_StatePKc

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>
}

Advertisements