This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

1.5.18 /usr/lib/gcc/i686-pc-cygwin/3.4.4/libfrtbegin.a(frtbegin.o):: undefined reference to `_MAIN__'

I am trying to compile overflow 1.8aa, a large Computational Fluid
Dynamics code written in Fortran with some C.  The code will compile and
run using gcc and g77 on Linux.  The code compiles successfully under
Cygwin 1.5.18.  The link fails as follows:

g77 -O3 -ffast-math -malign-double -o overflow chimera/*.o grid/*.o
linear/*.o unix/*.o ns/bc/*.o ns/control/*.o ns/euler/*.o ns/fomo/*.o
ns/mg/*.o ns/smoothing/*.o ns/step/*.o ns/turbulence/*.o
ns/utilities/*.o ns/viscous/*.o ke/bc/*.o ke/control/*.o
ke/convection/*.o ke/diffusion/*.o ke/source/*.o ke/step/*.o
ke/turbulence/*.o ke/utilities/*.o ret/bc/*.o ret/control/*.o
ret/convection/*.o ret/diffusion/*.o ret/source/*.o ret/step/*.o
ret/turbulence/*.o ret/utilities/*.o sce/bc/*.o sce/control/*.o
sce/convection/*.o sce/smoothing/*.o sce/step/*.o sce/utilities/*.o  
/usr/lib/gcc/i686-pc-cygwin/3.4.4/libfrtbegin.a(frtbegin.o):: undefined
reference to `_MAIN__'
collect2: ld returned 1 exit status
make[1]: *** [link] Error 1
make[1]: Leaving directory `/cygdrive/u/overflow/over1.8aa'
make: *** [gnu] Error 2

Thanks in advance
Martin Crehan

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]