云风大神,鄙人通过铁杆兄弟认识了你,对你仰慕已久。你对go和lua都那么推崇,是否考虑把两者结合起来使用呢?编译语言+脚本语言。
我的小项目 『More』
不好意思,刚才忘记贴错误了。补上!(ps:lua5.2.1已经安装)
编译golua的时候提示: # Lib/golua/lua Undefined symbols for architecture x86_64: "_lua_tonumber", referenced from: __cgo_7bf27e0e26b2_Cfunc_lua_tonumber in golua.cgo2.o (maybe you meant: _lua_tonumberx, __cgo_7bf27e0e26b2_Cfunc_lua_tonumber )。。。。。。
编译glua的时候提示: # Lib/glua error: 'lua_pcall' undeclared (first use in this function) error: (Each undeclared identifier is reported only once error: 'luaL_loadfile' undeclared (first use in this function) error: 'lua_tointeger' undeclared (first use in this function) error: 'lua_call' undeclared (first use in this function) error: 'lua_tonumber' undeclared (first use in this function)