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

Home » Public Forums » archive » Re: how can i call a compiled fortran code from IDL?
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 can i call a compiled fortran code from IDL? [message #33944 is a reply to message #33942] Thu, 06 February 2003 09:40 Go to previous messageGo to previous message
mads is currently offline  mads
Messages: 15
Registered: January 2003
Junior Member
hi all,
what if i have to use,
spawn, 'c:\hi\what to do now\something.exe'
now the space that is in "what now" causes a problem. Thats the reason i was
against spawning. i can solve that by just moving all the files into the
working directory and just use
spawn,'something.exe'
thats how i have solved the problem now
sincerely
madhu
"David Fanning" <david@dfanning.com> wrote in message
news:MPG.18ac3a1b6d55b87a989ace@news.frii.com...
> James Kuyper (kuyper@saicmodis.com) writes:
>
>> It's a naming convention issue, and the naming conventions are different
>> on different platforms. On some platforms, an '_' is prepended, rather
>> then appended, on some platforms, both will be needed.
>>
>> If you have access to HDF, it provides a header "hdfi.h", containing a
>> number of useful macros for encapsulating what the've learned about
>> portable Fortran-C coding. FNAME(name) provides the C function name that
>> will be callable as a Fortran function or subroutine called 'name'; it
>> adds '_' whereever it's needed, if it's needed. In order to make a C
>> function work as a Fortran function returning a specified type, you
>> declared the return type as FRETVAL(type). It also defines a typedef
>> named 'intf' for an integral C type that has the same representation as
>> the Fortran INTEGER type.
>
> Mads, do you see now why SPAWN is the solution of choice here? :-)
>
> Cheers,
>
> David
>
> P.S. Let's just say learning FORTRAN is only the *start*
> of your trouble. :-(
>
> --
> David W. Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Phone: 970-221-0438, E-mail: david@dfanning.com
> Coyote's Guide to IDL Programming: http://www.dfanning.com/
> Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Postscript output mods
Next Topic: Re: XROI in IDL5.6 on MAC OS 10.2?

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

Current Time: Sun Oct 12 06:44:55 PDT 2025

Total time taken to generate the page: 0.95997 seconds