title: SDL Link Error when compiling basic program with header defined
body: <p>I'm following a lesson on C++ on Udemy and seem to have fallen at the first hurdle for creating the program. </p>
  
  <p>I've added all of the SDL Header files and included SDL.H as the lessons indicate.</p>
  
  <p>I've done nothing with the DLL files which where provided in the SDL Default download. </p>
  
  <p>My code is as follows:</p>
  
  <pre><code>#define SDL_MAIN_HANDLED
  #include &lt;iostream&gt; 
  #include &lt;SDL.h&gt;
  using namespace std;
  
  int main() {
  
      if (SDL_Init(SDL_INIT_VIDEO) &lt; 0) {
          cout &lt;&lt; "SDL init failed" &lt;&lt; endl;
          return 1;
      }
  
      cout &lt;&lt; "SDL Init succeeded" &lt;&lt; endl;
  
      SDL_Quit();
  
      return 0;
  }
  </code></pre>
  
  <p>However, I get the following errors upon compiling: </p>
  
  <p>Error   LNK2019 unresolved external symbol _SDL_Init referenced in function _main   ParticleProjectNEW  ParticleProgram\ParticleProjectNEW\Source.obj   1   </p>
  
  <p>Error   LNK2019 unresolved external symbol _SDL_Quit referenced in function _main   ParticleProjectNEW  \ParticleProgram\ParticleProjectNEW\Source.obj  1   </p>