title: Compiling in VS2013: error LNK2001 using C++
body: <p>I'm trying to compile my game with Visual Studio 2013. The game uses Box2D, but when compiling in Release mode the release Box2D.lib is giving errors. It works fine when compiling in Debug mode with the debug Box2D.lib. </p>
  
  <p>I'm getting 135 errors, and mainly something like these three: </p>
  
  <pre><code>1&gt;Box2D.lib(b2CollideEdge.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
  1&gt;MyContactListener.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) char const * __cdecl std::_Winerror_map(int)"
  (__imp_?_Winerror_map@std@@YAPBDH@Z)
  1&gt;Box2D.lib(b2ContactManager.obj) : error LNK2001: unresolved external symbol _atexit
  </code></pre>
  
  <p>I have built the Box2D.lib's several times now, and I'm sure I'm linking to the right release and debug libraries.</p>
  
  <p>I tried disabling the compiler flag /GS (Buffer Security Check), but that didn't help.</p>
  
  <p>For building the Box2D.lib and when compiling the game I use the flag Multi-threaded DLL (/MD) for runtime library.</p>
  
  <p><strong>EDIT:</strong> I got rid of the errors "@__security_check_cookie@4" when I linked with the library "bufferoverflowU.lib". Still, 133 errors remain.</p>