Lua项目编译错误(luabind) [英] Lua project compiling with errors (luabind)

查看:699
本文介绍了Lua项目编译错误(luabind)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在Visual Studio 2010中使用Lua + Luabind创建一些HelloWorld。我从此处下载了Lua src,并添加了它源文件到项目中。然后,我下载并添加 luabind 的来源。 Finaly添加了main.cpp。所以后试图编译项目,并得到错误在大多数所有luabind文件:

I trying to make some HelloWorld with Lua + Luabind in Visual Studio 2010. I downloaded Lua src from here and added it's source files into project. Then I download and added source of luabind. Finaly added main.cpp. So after that tried to compile project and got errors in mostly all luabind files:

error C3861: 'lua_strlen': identifier not found
error C2065: 'LUA_GLOBALSINDEX' : undeclared identifier

请帮我做错了什么?什么文件我必须添加到项目?也许一些额外的图书馆?

Please help me what I did wrong? What files I must add to project? Maybe some additional library? What best practice to organize lua projects?

推荐答案

似乎Luabind是为Lua 5.1编写的,并且你已经下载了Lua 5.2。

It seems that luabind is written for Lua 5.1 and you've downloaded Lua 5.2.

这篇关于Lua项目编译错误(luabind)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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