[英]Lua project compiling with errors (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. 我试图在Visual Studio 2010中使用Lua + Luabind制作一些HelloWorld。我从这里下载了Lua src并将其源文件添加到项目中。 Then I download and added source of luabind .
然后我下载并添加了luabind的来源。 Finaly added main.cpp.
最后添加了main.cpp。 So after that tried to compile project and got errors in mostly all luabind files:
所以在那之后尝试编译项目并在大多数luabind文件中出错:
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?
组织lua项目的最佳实践是什么?
似乎luabind是为Lua 5.1编写的,你已经下载了Lua 5.2。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.