Home »
Public Forums »
archive »
Re: Calling Fortran 90 from IDL/LINUX/ pgi/ifort
| Re: Calling Fortran 90 from IDL/LINUX/ pgi/ifort [message #43564 is a reply to message #43562] |
Fri, 22 April 2005 05:10  |
Haje Korth
Messages: 651 Registered: May 1997
|
Senior Member |
|
|
In order to clear out loaded .so, you need to use .full_session_reset or
short .f.
"catwithhat" <axel@apl.washington.edu> wrote in message
news:1114132155.276487.294180@z14g2000cwz.googlegroups.com.. .
> 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
>
|
|
|
|
Current Time: Sun Nov 30 20:13:15 PST 2025
Total time taken to generate the page: 1.03919 seconds