title: gfortran 4.8.1 on Windows 7 (undefined reference to 'WinMain@16')
body: <p>I have a problem compiling some Fortran code with gfortran 4.8.1 on Windows 7. With some Fortran programs I get the error message:</p>
  
  <pre><code>c:/gcc/bin/../lib/gcc/i686-pc-mingw32/4.8.1/../../../../i686-pc-mingw32/lib/libmingw32.a(lib32_libmingw32_a-crt0_c.o):crt0_c.c:(.text+0x3c): undefined reference to 'WinMain@16'
  </code></pre>
  
  <p>These are not programs that contain only function or subroutines!</p>
  
  <p>Any help how to solve this problem?</p>