Fortran Works?

Dan Ganser danganser@yahoo.com
Sat Nov 11 17:24:00 GMT 2000


I just installed cygwin's gcc on my Windows NT and 98
machines. My source compiles, but will not link. I
tested some C code and it is fine.

Shouldn't Fortran work? Am I missing something?

I tried compiling from within the Cygwin BASH shell
where all my paths appeared good.

command line: gcc junk1.f

Source:
      PROGRAM MAIN

      WRITE(6,*) 'Hello World'

      RETURN
      END

Output:

/cygdrive/c/WINDOWS/TEMP/ccgmxlDw.o(.text+0x23):junk1.f:
undefined reference to `s_wsle'
/cygdrive/c/WINDOWS/TEMP/ccgmxlDw.o(.text+0x3c):junk1.f:
undefined reference to `do_lio'
/cygdrive/c/WINDOWS/TEMP/ccgmxlDw.o(.text+0x44):junk1.f:
undefined reference to `e_wsle'
/usr/lib/libcygwin.a(libcmain.o)(.text+0x6a):libcmain.c:
undefined reference to `WinMain@16'
collect2: ld returned 1 exit status

Any help would be appreciated.

Thanks,
Dan

__________________________________________________
Do You Yahoo!?
Yahoo! Calendar - Get organized for the holidays!
http://calendar.yahoo.com/

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com



More information about the Cygwin mailing list