This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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]

Cygwin gfortran latest binary link failure


I just downloaded Cygwin gfortran:

http://quatramaran.ens.fr/~coudert/gfortran/gfortran-Cygwin-4.1-20051116-i686.tar.bz2

unpacked it in /usr/local/share/irun and set up a symbolic link to the executable as I have several times before. I try to compile and link a 3-line "hello world" program (below) and get a linker error. Anyu ideas? I imagine this is a simple configuration problem, but it's well beyond me.

$ gfc -v
Using built-in specs.
Target: i686-pc-cygwin
Configured with: ../trunk/configure --prefix=/svn --with-gmp=/usr/local/gmp --with-mpfr=/usr/local/gmp --enable-languages=c,f95
Thread model: single
gcc version 4.1.0 20051115 (experimental)


$ cat > hello.f90 << EOF
> program hello
> write (*,*) "Hello world"
> end program
>

$ gfc hello.f90
/usr/bin/ld: cannot find -lgfortranbegin
collect2: ld returned 1 exit status

(Minor note: the above archive has a top-level "svn" directory that was not there before. However moving everything up one level and deleting "svn" does not affect the linker problem.)


-- Mark Hadfield "Kei puwaha te tai nei, Hoea tahi tatou" m.hadfield@niwa.co.nz National Institute for Water and Atmospheric Research (NIWA)


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