Re: CALL_EXTERNAL with F90 on an SGI [message #18339] |
Tue, 21 December 1999 00:00 |
Terry Haran
Messages: 2 Registered: December 1999
|
Junior Member |
|
|
Myron:
I ran into a similar problem a while back using CALL_EXTERNAL to call some C
routines. My IDL had been installed under IRIX 6.2, but then later I upgraded
to IRIX 6.5 without re-installing IDL. Therefore, my IDL was installed with the
IRIX 6.2 default -o32 switch, but I was compiling and linking my new C code
with the IRIX 6.5 default -n32 switch, and I got the errors you describe when I
tried running my IDL program. I "solved" the problem by compiling and linking
my C code using -o32 and everything worked just fine.
Hope this helps.
--Terry
Myron Brown wrote:
> I'm trying to use CALL_EXTERNAL on an SGI running IRIX 6.5 to call Fortran
> routines. I have read the documentation for CALL_EXTERNAL and have looked
> at the examples provided with IDL. My Fortran code looks similar to the
> examples, but I keep getting errors when I call CALL_EXTERNAL saying that it
> cannot find the routine. The file is there. I have checked the name of the
> subroutine I'm calling using 'nm'. Is there something about doing this on
> the SGI that should be implemented differently? I'm using standard MIPS
> Fortran 90 Fortran. Any ideas?
>
> Also, I tried calling CALL_EXTERNAL using another file instead, this time an
> executable program. Of course, it won't find an entry point, but it DID
> find the file!! What's the difference. Both files are in the same
> directory.
>
> Myron Z. Brown
> The Johns Hopkins University Applied Physics Laboratory
> Myron.Brown@jhuapl.edu
--
Terence (Terry) Haran National Snow & Ice Data Center
tharan@kryos.colorado.edu University of Colorado
voice: 303-492-1847 Campus Box 449
fax: 303-492-2468 Boulder, CO 80309-0449
|
|
|
Re: CALL_EXTERNAL with F90 on an SGI [message #18340 is a reply to message #18339] |
Tue, 21 December 1999 00:00  |
Andy Loughe
Messages: 174 Registered: November 1995
|
Senior Member |
|
|
Myron Brown wrote:
>
> I'm trying to use CALL_EXTERNAL on an SGI running IRIX 6.5 to call Fortran
> routines. I have read the documentation for CALL_EXTERNAL and have looked
> at the examples provided with IDL. My Fortran code looks similar to the
> examples, but I keep getting errors when I call CALL_EXTERNAL saying that it
> cannot find the routine. The file is there. I have checked the name of the
> subroutine I'm calling using 'nm'. Is there something about doing this on
> the SGI that should be implemented differently? I'm using standard MIPS
> Fortran 90 Fortran. Any ideas?
>
> Also, I tried calling CALL_EXTERNAL using another file instead, this time an
> executable program. Of course, it won't find an entry point, but it DID
> find the file!! What's the difference. Both files are in the same
> directory.
Maybe this web site will help:
http://www.cdc.noaa.gov/~afl/code/call_external/describe.htm l
"nm" is helpful when trying to resolve symbols not found
in the table. Notice the testing of mathematical functions in
the routine called primes.f; I had problems finding atan2 and datan2.
Good luck... it seems like a bit of a crap shoot when it comes
to resolving all the symbols.
--
| Andrew F. Loughe | email: afl@cdc.noaa.gov
| NOAA-CIRES CDC | web : www.cdc.noaa.gov/~afl
| 325 Broadway Mail Code R/E/CD1 | voice: (303)497-6211
| Boulder, CO 80303-3328 | fax : (303)497-7013
------------------------------------------------------------ -----
"We must believe in free will, we have no choice"-Isaac B. Singer
|
|
|