comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: How to call fortran subroution?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: How to call fortran subroution? [message #24714 is a reply to message #24711] Sun, 15 April 2001 07:31 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
"web" <jiali3@21cn.com> writes:

> Yes, I know that. I have read the example more then 5 times,but I have
> failed for many times too.Who can help me to modify the subroutine above(a
> much more simple example) and teach how to link them step by step? Many guys
> are interested in it. Or are there any detailed document on it? The
> explanasion of the help document is too simple.
... remainder deleted ...

Jaili--

I think Stefano is right, you can't call FORTRAN directly from IDL,
especially with the CALL_EXTERNAL method. That method requires your
program to conform to a very specific interface for your function
parameters (two parameters named argc and argv).

I'm looking at the External Development Guide for IDL 5.2. They
recommend a "wrapper" function written in C, which in turn calls the
FORTRAN. That manual does give an example where the FORTRAN
subroutine can be called directly, but the semantics appear to be
present only on a few platforms (VMS or IBM AIX), and the subroutine
must still conform to the argc and argv convention.

Questions:
* What example are you looking at?
* Does Ronn Kling's book on external linking address FORTRAN?

Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to read two-bytes variables from a file saved in Mac?
Next Topic: Re: search for linux programs

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 16:18:28 PDT 2025

Total time taken to generate the page: 0.64030 seconds