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

Home » Public Forums » archive » Calling Fortran 90 from IDL/LINUX/ pgi/ifort
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Calling Fortran 90 from IDL/LINUX/ pgi/ifort [message #43568] Thu, 21 April 2005 18:09
Axel Schweiger is currently offline  Axel Schweiger
Messages: 11
Registered: November 1995
Junior Member
I have Fortran 90 application I need to run from IDL under Redhat Linux
(x86). I have looked at the examples for call_external but apparently
neither the direct case nor the C-Wrapper case are implemented for
Linux.

Question:
-Can anyone send me an example (Makefile). I have either pgif90
or ifort (Intel) compilers available for (x86)
-I have gotten the simple simple_c2f.c to almost work but the
the strings don't get passed properly.

pgicc -fPIC -c example_c2f.c
pgif90 -fPIC -shared example_c2f.o example_c2f1.f -o \
example_c2f.so

This works except for the string variable which doesn't get
passed into the C-program correctly

-Also I noticed that when I recompile a new *.so libary, I need
to exit IDL and reenter to make it read the new one.
I tried .reset but that has no effect either.

Thanks much
Axel
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: annotating images with text (potential dumb question here)
Next Topic: Re: IDLDE -> IDLWAVE Newbie FAQ

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

Current Time: Wed Oct 08 17:40:24 PDT 2025

Total time taken to generate the page: 0.00581 seconds