title: Visual Studio build error "unresolved external symbol WinMain"
body: <p>This error is really driving me nuts! How do I fix it?</p>
  
  <p>This is my output:</p>
  
  <pre><code>1&gt;------ Build started: Project: GenericProjectName, Configuration: Debug x64 ------
  1&gt;MSVCRTD.lib(exe_winmain.obj) : error LNK2019: unresolved external symbol WinMain referenced in function "int __cdecl invoke_main(void)" (?invoke_main@@YAHXZ)
  1&gt;C:\generic\path\to\executable.exe : fatal error LNK1120: 1 unresolved externals
  ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
  </code></pre>
  
  <p>And yes, I have Windows selected as the subsystem.</p>