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]

Re: main.o(.text+0x29e): undefined reference to `getarg_


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


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