This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: argc, argv
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Thomas Veith <xtv at tveith dot homelinux dot com>
- Cc: fortran at gcc dot gnu dot org
- Date: Tue, 30 Mar 2004 10:13:05 -0800
- Subject: Re: argc, argv
- References: <200403300801.39937.xtv@tveith.homelinux.com>
On Tue, Mar 30, 2004 at 08:01:39AM +0200, Thomas Veith wrote:
> Hi *,
>
> at the moment I'm packaging a HPF-Fortran-precompiler (Vienna) for gentoo
> using intels ifort as backend.
>
> But I would like to add support for gfortran; therefore I need to know how to
> access commandline arguments (argc, argv). In intel it is done with the
> functions nargs() and getarg().
>
> Exists in gfortran a direct way to access argc and argv or are there functions
> comparable to intels ifort which allow to access argc and argv either
> directly or indirectly ala getarg(n, buffer)?
>
gfortran will eventually support iargc() and getarg(), which are
part of g77. At the moment, neither is implemented.
--
Steve