title: error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup error
body: <p>I am programming SDL in C++ and I keep getting an error:</p>
  <pre><code>    error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
  </code></pre>
  <p>What can I do to resolve this? Here is my source:</p>
  <pre><code>#include &lt;SDL.h&gt;
  int main(int argc, char *argv[]){
      SDL_Init(SDL_INIT_VIDEO);
      SDL_Window* Window = NULL;
      Window = SDL_CreateWindow(&quot;Render Window&quot;,0,0,1000,1000, SDL_WINDOW_SHOWN || SDL_WINDOW_FULLSCREEN);
      return 0;
  }
  </code></pre>
  <p>My linker and compiler seem fine, I have included console in the subsystem etc. But the error only occurs when I add:</p>
  <pre><code>#include &lt;SDL.h&gt;
  </code></pre>