博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
lua5.2 可能会遇到的一些错误
阅读量:4069 次
发布时间:2019-05-25

本文共 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/

你可能感兴趣的文章
project ASP.NET
查看>>
db db2_monitorTool IBM Rational Performace Tester
查看>>
OS + Unix Aix telnet
查看>>
IBM Lotus
查看>>
Linux +Win LAMPP Tools XAMPP 1.7.3 / 5.6.3
查看>>
my read_university
查看>>
network manager
查看>>
searchServer IBM OminiFind / WebSphere Commerce SOLR
查看>>
OS + Linux Disk disk lvm / disk partition / disk mount / disk io
查看>>
my read_Country
查看>>
RedHat + OS CPU、MEM、DISK
查看>>
project bbs_discuz
查看>>
net TCP/IP / TIME_WAIT / tcpip / iperf / cain
查看>>
Unix + OS books
查看>>
script webshell jspWebShell / pythonWebShell / phpWebShell
查看>>
project site_dns
查看>>
webServer kzserver/1.0.0
查看>>
hd printer lexmark / dazifuyin / dayin / fuyin
查看>>
OS + Unix IBM Aix basic / topas / nmon / filemon / vmstat / iostat / sysstat/sar
查看>>
monitorServer nagios / cacti / tivoli / zabbix / SaltStack
查看>>