Original Post
Hi, I'm aware how silly this is, but I can't get Lua to link with my project. I am using MSVC++ 2008 Express Edition. I have created a new console application, and added a message. It compiles, and runs. I then downloaded the binary x86 static library and includes package for Visual C++ 2008. After copying these files to appropriate places inside my project directory, I modified the project settings for both configurations so that /lua/include is listed under "Additional Include Directories", /lua/libs is listed under "Additional Library Directories" and "Additional Dependencies" now contains lua5.1.lib. The main (and only) source file now reads: I get no compile errors, but no such luck with linking.
extern "C"
{
#include "lua.h"
#include "lualib.h"
#include "lauxlib.h"
}
int main( int argc, const char *argv[] )
{
lua_State *L = lua_open();
lua_close( L );
}
Quote:I've been searching through the google results for these errors for the past few hours, which is pretty hopeless. I really can't figure out what I'm doing wrong. Can anyone point me in the right direction? Thanks so much.
1>main.obj : error LNK2019: unresolved external symbol _lua_close referenced in function _main 1>main.obj : error LNK2019: unresolved external symbol _luaL_newstate referenced in function _main