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

Home » Public Forums » archive » Call_external passing problem
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: Call_external passing problem [message #36813 is a reply to message #36724] Wed, 22 October 2003 11:57 Go to previous message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
"David Green" wrote...
> Hi everyone, recently i've been using the call_external function a bit
> to call fortran code through c wrappers and i thought i had it sorted
> however i can't seem to see my mistake in this one...

Have you tried using the AUTO_GLUE keyword to CALL_EXTERNAL?

Word on the street is that it makes life much easier. Since you are using
gcc, you'll need to tweak your !MAKE_DLL environment vars a bit. All of
this is documented.

There is also Stein Vidar Hagfors Haugan's dlm form available at:
http://www.astro.uio.no/~steinhh/idl/dlmform.html which automagically writes
the C wrappers for F77 code if AUTO_GLUE isn't working for you.

Also, I don't use gcc to build on linux but you'll probably want to add
the -fPIC switch when compiling your wrapper.

-Rick
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Java bridge: xml parsers
Next Topic: which OS is faster for idl? Win or Linux?

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

Current Time: Sat Oct 11 11:07:30 PDT 2025

Total time taken to generate the page: 0.95829 seconds