starwing / lua-protobuf

A Lua module to work with Google protobuf
MIT License
1.75k stars 387 forks source link

g++编译生成的lua在lua-protobuf中不支持 #139

Closed Txhua closed 3 years ago

Txhua commented 3 years ago

g++编译生成的lua库运行lua-protobuf会报undefined symbol: lua_rawgetp错误

starwing commented 3 years ago

请保证pb.so和Lua的版本相同(g++找到的Lua头文件和lua可执行文件对应)

另外如果需要C++编译,将pb.c里的#include <lua.h>换成#include <lua.hpp>