Re: Fortran External Calls [message #13841 is a reply to message #13828] |
Thu, 17 December 1998 00:00  |
steinhh
Messages: 260 Registered: June 1994
|
Senior Member |
|
|
John Grimes wrote (about F90 call_external problems):
> Anyway I think all I need is a solid example of it being done.
> Don't really understand how to do the argv stuff in fortran. What I am
> trying is definetely not working.
Although it's *possible* that there's a mechanism in F90 that will
allow this to be done, I doubt it. You will probably have to
write a C wrapper that gets the parameters from argv and then
passes them to the F90 routine. See the examples in
$IDL_DIR/external/call_external/Fortran (that's the name
of the directory for IDL 5.2, anyway - can't seem to remember
the capital F in Fortran before....) Beware that routine
naming conventions (underscores etc.) may be different
in C, F77 and F90 compilers.
You should also look at the online help more closely, there's
a lot of it that's hidden well: There's the "Main IDL Help File",
and then there's the "Other Online Books" (think the naming
etc. is slightly different for earlier versions, but the thing
that counts is that the online help is segmented into "books",
and when you're looking at one book, you cannot see what's
in the other books until you make the switch in the Contents
section of the Topics "dialog").
Regards,
Stein Vidar
|
|
|