使用C ++嵌入lua的错误 [英] Errors embedding lua with C++

查看:83
本文介绍了使用C ++嵌入lua的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿,我正在关注这个网站的教程。它被称为将Lua集成到C ++中,无论它是过时还是问题都在我的最后。



将Lua集成到C ++中



这是'我正在编译时收到的错误:



错误



此外,这里是来源。它包含两个代码文件:



来源



编辑:我在另一个IDE中做了完全相同的事情:Code :: Blocks使用Mingw编译器。这些错误对我来说更容易理解,它说:



未定义引用`lua_open'
未定义引用` luaopen_io'
未定义引用`luaL_loadfile'
未定义引用`lua_pcall'
未定义引用`lua_pushstring'
未定义引用`lua_gettable'
未定义引用` lua_pcall'
未定义引用`lua_close'





我最近向文章作者求助,还在等待。

解决方案

你最好问一下这篇文章的作者。加载文章页面(按照您上面提供的链接),找到评论和讨论部分,然后单击添加评论或问题以向作者提问。作者将收到您的帖子通知,并有机会回复。请务必提供有关如何重现问题的充分信息。



祝你好运,

-SA

Hey, I was following a tutorial on this site. It''s called "Integrating Lua into C++", whether it''s out-dated or the problem is on my end.

Integrating Lua into C++

Here''s the errors I''m receiving when I''m compiling:

Errors

Also, here''s the source. It contains two files of code:

Source

EDIT: I did the exact same thing in another IDE called: Code::Blocks using a Mingw compiler. The errors were allot more understandable for me, it says:

undefined reference to `lua_open'
undefined reference to `luaopen_io'
undefined reference to `luaL_loadfile'
undefined reference to `lua_pcall'
undefined reference to `lua_pushstring'
undefined reference to `lua_gettable'
undefined reference to `lua_pcall'
undefined reference to `lua_close'



I''ve recently asked the author of the article for help, that''s still pending.

解决方案

You would better ask the author of this article. Load the article page (follow you own link you provided above), locate the section "Comments and Discussions" and click "Add a Comment or Question" to ask author your questions. The author will receive notification on your post and get a chance to reply. Make sure you provide sufficient information of how to reproduce the problem.

Good luck,
—SA


这篇关于使用C ++嵌入lua的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆