This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Cygwin gfortran latest binary link failure
- From: Mark Hadfield <m dot hadfield at niwa dot co dot nz>
- To: fortran at gcc dot gnu dot org
- Date: Fri, 18 Nov 2005 14:30:03 +1300
- Subject: 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)