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 #36812 is a reply to message #36724] Wed, 22 October 2003 18:51 Go to previous messageGo to previous message
isoaga2 is currently offline  isoaga2
Messages: 4
Registered: October 2003
Junior Member
"Rick Towler" <rtowler@u.washington.edu> wrote in message news:<bn6k2v$2bvs$1@nntp6.u.washington.edu>...
> "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


Well, do i feel stupid... Turns out the code i posted above is
correct, it was just my inexperience with vim that was the problem, i
was compiling the wrong piece of code :S

Oh, and thanx for the suggestions Rick, i'm now compiling and linking
with the -fPIC option and now i'm off to check out this AUTO_GLUE
stuff.
[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: Fri Oct 17 19:00:05 PDT 2025

Total time taken to generate the page: 0.34512 seconds