C++调用lua编译报错
来源:互联网 发布:第三方支付数据 编辑:程序博客网 时间:2024/05/16 13:38
编译的时候
#g++ -o luac luac.cpp -llua -ldl
编译但是错误信息
c.cpp: In function `int main()':
luac.cpp:43: error: `lua_baselibopen' was not declared in this scope
#g++ -o luac luac.cpp -llua -ldl
编译但是错误信息
c.cpp: In function `int main()':
luac.cpp:43: error: `lua_baselibopen' was not declared in this scope
luac.cpp:46: error: `lua_dofile' was not declared in this scope
解决方法:
改成
luaopen_base(L);
luaL_dofile(L, "add.lua");
- C++调用lua编译报错
- C语言调用Lua编译问题总结
- C语言调用Lua编译问题总结
- C/C++语言调用lua函数和编译问题
- [Lua]C/C++调用Lua
- [lua]C调用lua函数
- Lua学习随笔 之 Lua下载 - 安装 - 编译 - C/C++相互调用
- lua 编译 C模块
- C/C++ 调用 Lua
- c调用lua脚本
- Lua调用C函数
- C调用lua
- lua 调用c函数
- lua c/c++ 调用
- Lua调用C函数
- lua调用c函数
- Lua调用C函数
- c调用lua
- H.264视频的RTP荷载格式
- linux command 小记
- [转载]COleDateTime类型的应用
- 用ATL和MFC来创建ActiveX
- java新特性-java.lang.Closeable & try-resources
- C++调用lua编译报错
- CheckBox列表的使用实例
- URL编码对照表
- 如何让Android横竖屏切换时不销毁当前activity
- Change Log for Pruning Undesired Code of Joomsport
- tcpdump 日常使用
- cache-control和zip压缩引起的在IE6下js和css失效
- CMD默认路径的设置
- 一步一步 安装Ubutu11.10 图文教程