This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: main.o(.text+0x29e): undefined reference to `getarg_
- From: FranÃois-Xavier Coudert <Francois-Xavier dot Coudert at lcp dot u-psud dot fr>
- To: Daniel Heiserer <Daniel dot Heiserer at bmw dot de>
- Cc: fortran at gcc dot gnu dot org
- Date: Wed, 26 Jan 2005 12:51:49 +0100
- Subject: Re: main.o(.text+0x29e): undefined reference to `getarg_
- Organization: Laboratoire de Chimie Physique
- References: <41F78234.4090503@bmw.de>
the getarg function seems not to be implemented in gfortran.
Would you please specify what platform you use, where you obtained your
gfortran binaries (did you build it from scratch or downloaded it somewhere)
and what is the smallest program that fails.
For me, on i686-linux (self-made binaries), it works (TM):
program test
character(len=50) :: s
call getarg (0, s)
print *, s
end program test
I get the correct output:
$ gfortran a.f90 && ./a.out
./a.out
Thanks,
FX