Setting up Lua on Windows using Visual C++
Posted: 16 Oct 2010, 15:54
Im starting Lua. Right now im just trying to get some simple scripts going, the hello worlds and basic functionality i can get through fairly quickly. But i cant find anywhere that really explains how to set up lua.
I was given this:
http://lua-users.org/wiki/TutorialDirectory
But they done explain how to set up for the Tutorials.
Also here:
http://lua-users.org/wiki/BuildingLua
But im having problems. Ive set up a simple C++ program that executes a lua script. It compiles but I get the following link errors:
1>main.obj : error LNK2019: unresolved external symbol _lua_close referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol _lua_pcall referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol _luaL_loadfile referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol _luaL_openlibs referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol _luaL_newstate referenced in function _main
Im assuming its some sort of library problem. I have a book that explains how to set up. But it uses lua 5.1.3. This has .lib files that are added. 5.1.4 doesnt appear to have these .lib files. I cant find how to fix this problem. Can anyone help me out here?
I was given this:
http://lua-users.org/wiki/TutorialDirectory
But they done explain how to set up for the Tutorials.
Also here:
http://lua-users.org/wiki/BuildingLua
But im having problems. Ive set up a simple C++ program that executes a lua script. It compiles but I get the following link errors:
1>main.obj : error LNK2019: unresolved external symbol _lua_close referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol _lua_pcall referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol _luaL_loadfile referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol _luaL_openlibs referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol _luaL_newstate referenced in function _main
Im assuming its some sort of library problem. I have a book that explains how to set up. But it uses lua 5.1.3. This has .lib files that are added. 5.1.4 doesnt appear to have these .lib files. I cant find how to fix this problem. Can anyone help me out here?