title: SDL errors Visual Studio 2013
body: <p>I'm using Visual Studio 2013, and SDL 2.0.1, and for some reason, I get a whole bunch of errors similar to this:</p>
  
  <pre><code>Error   2   error LNK2019: unresolved external symbol _SDL_DestroyWindow referenced in function "public: virtual __thiscall Display::~Display(void)" (??1Display@@UAE@XZ)   c:\Users\Toby\documents\visual studio 2013\Projects\OpenGLTutorialProject\OpenGLTutorialProject\Display.obj OpenGLTutorialProject
  </code></pre>
  
  <p>The steps I took to link SDL to my program:
  -Created a folder called include, and put all the files in SDL/include into my project's include folder.
  -Created a lib folder for my project, and put all the contents in SDL/lib into it.
  -Went to <strong>Properties -> Linker -> General -> Additional Library Directories</strong> and pointed it to my lib folder in the project.
  -Went to <strong>Properties -> C/C++ -> General -> AdditionalInclude Directories</strong> and set the path to my include folder in my project.
  -Went to <strong>Properties -> Linker -> Input-> Additional Dependencies</strong> and typed the following:</p>
  
  <pre><code>glew32.lib
  glew32s.lib
  SDL2.lib
  SDL2main.lib
  SDL2test.lib
  OpenGL32.lib
  </code></pre>
  
  <p>Yes, I also included GLEW, which works fine and links. </p>
  
  <p>When I type this:</p>
  
  <pre><code>#include&lt;SDL2/SDL.h&gt;
  </code></pre>
  
  <p>Visual studio actually completes it for me, so visual studio knows SDL exists in the project. However, after that, I try to run and compile, and I'm met with a bunch of unresolved external symbol errors, and then this:</p>
  
  <pre><code>Error   12  error LNK1120: 11 unresolved externals  c:\users\toby\documents\visual studio 2013\Projects\OpenGLTutorialProject\Debug\OpenGLTutorialProject.exe   OpenGLTutorialProject
  </code></pre>
  
  <p>I searched and it seems SDL used to have trouble with visual studio 2013, but then the bugs were ironed out. I also made sure to set up my main method like so:</p>
  
  <pre><code>int main(int argc, char **argv)
  </code></pre>
  
  <p>Because I have heard SDL is picky when it comes to arguments in the main method. Can anyone tell me what I have done wrong?</p>