Re: GETARG in ifc
From: Andrew Grief (grief_at_maths.ox.ac.uk)
Date: 08/20/04
- Next message: Mr. Adam Burry: "Re: variable length strings"
- Previous message: Jugoslav Dujic: "Re: module interface -basic problem"
- In reply to: Steve Lionel: "Re: GETARG in ifc"
- Next in thread: Steve Lionel: "Re: GETARG in ifc"
- Reply: Steve Lionel: "Re: GETARG in ifc"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 20 Aug 2004 16:01:09 +0100
> On Fri, 20 Aug 2004 12:39:30 GMT, tholen@antispam.ham wrote:
>
> >That is all well and good, but not being in the office right now and
> >unable to try it for myself, I'm wondering if folks know for a fact
> >that -Vaxlib includes the GETARG routine, or whether it was merely
> >something worth trying.
>
Hi tholen@antispam.ham
It does seem to work for me (YMMV). Here's the code, compile line and
output. If you give me (by email reply to this address) an email
address I will forward relevant excerpts from the ifc7.1 documentation to
you, but I'm reluctant to post them to the group. There's nothing very
exciting in the docs for this anyway though.
My test code and output:
program t
character(20) :: output
call getarg(0,output) !This should return code name.
print*, output
call getarg(1,output) !This should return first argument.
print*, output
end program t
bash$ ifc -V
Intel(R) Fortran Compiler for 32-bit applications, Version 7.1
bash$ ifc t.f90 -Vaxlib
program T
14 Lines Compiled
bash$ ./a.out 123
./a.out
123
bash$
I hope that helps you.
Yours,
Andy
PS: There was a debate about capital 'V' for Vaxlib... Yes it is required,
and I do get a warning if it's ommited - see below. By the way, for
Windows, the documentation suggests the -Vaxlib should be replaced by the
/4Yportlib switch, but I don't use Windows.
bash$ ifc t.f90 -vaxlib
ifc: Command line warning: ignoring option '-v'; no argument required
program T
14 Lines Compiled
/tmp/ifcNmTVkg.o: In function `main':
/tmp/ifcNmTVkg.o(.text+0x25): undefined reference to `getarg_'
/tmp/ifcNmTVkg.o(.text+0x61): undefined reference to `getarg_'
bash$
- Next message: Mr. Adam Burry: "Re: variable length strings"
- Previous message: Jugoslav Dujic: "Re: module interface -basic problem"
- In reply to: Steve Lionel: "Re: GETARG in ifc"
- Next in thread: Steve Lionel: "Re: GETARG in ifc"
- Reply: Steve Lionel: "Re: GETARG in ifc"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|