title: Eclipse CDT Error: undefined reference to `WinMain@16' for a console app from C -> Empty Project - how to fix?
body: <p>I am doing a Hello World C project in Eclipse CDT. I did 
  File -> New -> C Project -> Executable -> Empty Project</p>
  
  <p>When I compile it gives a link error that I think means that it thinks I am doing a Windows GUI program as it wants winmain@16 :</p>
  
  <p><strong>CDT Build Console (HelloWorld)</strong></p>
  
  <pre><code>17:54:23 **** Incremental Build of configuration Debug for project HelloWorld ****
  Info: Internal Builder is used for build
  gcc -o HelloWorld.exe HelloWorld.o 
  c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libmingw32.a(main.o):main.c:(.text.startup+0xa7): undefined reference to `WinMain@16'
  collect2.exe: error: ld returned 1 exit status
  17:54:23 Build Finished (took 381ms)
  </code></pre>
  
  <p>My question - how to I change the project's options, if possible, to not want winmain@16 ?</p>
  
  <p>I found that I can right click on the project name in the Project Explorer and select Properties off the menu, but I can't see anything for the executable type - console versus GUI.</p>