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:
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'
These are not programs that contain only function or subroutines!
Any help how to solve this problem?