title: Linker error: unresolved external symbol _WinMain@16 when building console application
body: <p>I'm trying to compile this code is Visual Studio 2015:</p>
  
  <pre><code>int main()
  {
      double* pvalue  = NULL; 
      pvalue  = new double;   
  
      *pvalue = 29494.99;     
      cout &lt;&lt; "Value of pvalue : " &lt;&lt; *pvalue &lt;&lt; endl;
  
      delete pvalue;         
  
      return 0;
  }
  </code></pre>
  
  <p>And i'm getting this compile error:</p>
  
  <p>1>MSVCRTD.lib(exe_winmain.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function "int __cdecl invoke_main(void)" (?invoke_main@@YAHXZ)</p>
  
  <p>Is this a Visual Studio problem? Should I reinstall it?</p>