Closed Txhua closed 3 years ago
g++编译生成的lua库运行lua-protobuf会报undefined symbol: lua_rawgetp错误
请保证pb.so和Lua的版本相同(g++找到的Lua头文件和lua可执行文件对应)
另外如果需要C++编译,将pb.c里的#include <lua.h>换成#include <lua.hpp>
#include <lua.h>
#include <lua.hpp>
g++编译生成的lua库运行lua-protobuf会报undefined symbol: lua_rawgetp错误