title: lua 5.2.1 unresolved externals
body: <p>I'm using visual studio 2012 and when I try to compile, I get following errors:</p>
  
  <pre><code>Error   7   error LNK1120: 6 unresolved externals   C:\Users\MS\Documents\Visual Studio 2012\Projects\LuaTest\Release\LuaTest.exe   LuaTest
  Error   4   error LNK2001: unresolved external symbol _lua_close    C:\Users\MS\Documents\Visual Studio 2012\Projects\LuaTest\LuaTest\main.obj  LuaTest
  Error   5   error LNK2001: unresolved external symbol _lua_pcallk   C:\Users\MS\Documents\Visual Studio 2012\Projects\LuaTest\LuaTest\main.obj  LuaTest
  Error   6   error LNK2001: unresolved external symbol _lua_settop   C:\Users\MS\Documents\Visual Studio 2012\Projects\LuaTest\LuaTest\main.obj  LuaTest
  Error   2   error LNK2001: unresolved external symbol _luaL_loadfilex   C:\Users\MS\Documents\Visual Studio 2012\Projects\LuaTest\LuaTest\main.obj  LuaTest
  Error   1   error LNK2001: unresolved external symbol _luaL_newstate C:\Users\MS\Documents\Visual Studio 2012\Projects\LuaTest\LuaTest\main.obj LuaTest
  Error   3   error LNK2001: unresolved external symbol _luaopen_base C:\Users\MS\Documents\Visual Studio 2012\Projects\LuaTest\LuaTest\main.obj  LuaTest
  </code></pre>
  
  <p>Source code taken from
  <a href="http://blog.acamara.es/2012/08/14/running-a-lua-5-2-script-from-c/" rel="nofollow">HERE</a>.</p>
  
  <p>Using following library version: <a href="http://sourceforge.net/projects/luabinaries/files/5.2.1/Windows%20Libraries/Dynamic/" rel="nofollow">lua-5.2.1_Win32_dll10_lib.zip</a></p>
  
  <p>I tried different lua52.lib files, but with all of them I get these errors.
  What could be wrong?</p>