Lua project compiling with errors (luabind)

こ雲淡風輕ζ 提交于 2019-12-23 10:08:31

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/13049318/lua-project-compiling-with-errors-luabind

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!