title: undefined reference to `WinMain@16' while compiling
body: <p>So I just installed <em>VS code</em> and was trying to run a code when this came up. Searched through the web for a relevant answer but none worked. </p>
  
  <p>Here is a more detailed <strong>output</strong> in the console:</p>
  
  <pre><code>cd "f:\" &amp;&amp; g++ testing.cpp -o testing &amp;&amp; "f:\"testing
  c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../libmingw32.a(main.o):(.text.startup+0xa0): undefined reference to `WinMain@16'
  collect2.exe: error: ld returned 1 exit status,
  </code></pre>
  
  <p>By the way I am using code-runner to run that single file. I have MinGW path all set up( don't know if that even matters). Please, someone help.<a href="https://i.stack.imgur.com/TXHQ6.png" rel="nofollow noreferrer">here is what it looks like</a></p>