tolua++没法用

tolua++没法用

(金庆的专栏)

觉得从C++头文件生成lua绑定代码的方法比较简单,想试试tolua++.

从Github获取toluapp:
https://github.com/LuaDist/toluapp.git

下载 lua-5.3.2.

Windows下 scons all 不能用:

gcc -o src\bin\tolua.o -c /nologo -Iinclude src\bin\tolua.c
'gcc' 不是内部或外部命令,也不是可运行的程序或批处理文件。
scons: *** [src\bin\tolua.o] Error 1
scons: building terminated because of errors.

win32下有个vc7的工程,发现只有 tolua++.exe 项目,没有 lib 项目,应该没用。

用CMake生成VS2015的sln, 编译出现错误:
toluapp\src\lib\tolua_map.c(414): error C2065: “LUA_GLOBALSINDEX”: 未声明的标识符

LUA_GLOBALSINDEX应该是旧版本Lua的标识符,现已删除。

tolua++ porting to 5.2
http://lua-users.org/lists/lua-l/2013-01/msg00352.html
提供了一个补丁。

正奇怪为什么该补丁没有应用到Github代码库中,看下面有一个回复:
http://lua-users.org/lists/lua-l/2013-01/msg00362.html

...the core architecture is profoundly broken, ...
I would recommend using a different project rather than trying to maintain it...

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值