本文共 236 字,大约阅读时间需要 1 分钟。
在使用protoc-gen-lua的时候,遇到一个神奇的错误, pb.c:435:34: error: array has incomplete element type 'const struct luaL_reg' 这个时候是不是有点世界观崩塌的感觉? 事实上查阅资料发现,lua5.1中,有下面一句话
#define luaL_reg luaL_Reg
所以这个问题的修复很简单,在pb.c 中加上这个宏定义就好咯
转载地址:http://msoji.baihongyu.com/