|
From: Roger K. W. <ROG...@sa...> - 2003-01-20 18:19:59
|
Earnie Boyd wrote: > Roger K. Wells wrote: > >> >> I then installed: >> gcc-3.2.1-core-20021201-2.tar >> >> output becomes: >> d:/mingw/bin/../lib/gcc-lib/mingw32/3.2.1/../../../libmingw32.a(main.o)(.text+0x7f):main.c: >> undefined reference to `WinMain@16' >> >> FWIW the output with -v: >> > > I used a command of ``g77 -o test test.f''. Why are you specifying > ``-lg2c''? > > Earnie. > > > thanks. the order matters here wheras it does not in gcc 2.95.2. -lg2c (the fortran intrinsics, etc) is needed if you use gcc instead of g77 directly. I suppose this is analogous to libc++ if you use gcc instead of c++. However gcc 3.2.1 does not seem to allow one to compile & link fortran with gcc. only g77 seems to work and in this case -lg2c is not needed. This is also different than 2.95.2 -- Roger Wells, P.E. SAIC 221 Third St Newport, RI 02840 401-847-4210 (voice) 401-849-1585 (fax) ro...@mt... |