|
From: Max B. <ma...@uk...> - 2003-01-18 15:27:31
|
Roger K. Wells wrote: > hello, > > A fortran 77 program that compiles & links correctly with (gcc version > 2.95.2 19991024 (release)) as follows: > > gcc -Wall asc2eph.f -lg2c > > gives the following result with (gcc (GCC) 3.2 (mingw special > 20020817-1)): > > main.c: undefined reference to `WinMain@16' > > any thoughts about what's missing? I tried linking in crt2.o, crt1.o, > gcrt2.o, gcrt1.o to no avail. Try invoking g77? This sounds like the Fortran equivalent of the "Trying to compile C++ with gcc not g++" problem. |