Calling Fortran from IDL - Help! :) [message #3502] |
Tue, 07 February 1995 14:28  |
patterso
Messages: 36 Registered: February 1995
|
Member |
|
|
I have been trying to call some Fortran routines from within IDL via the
CALL_EXTERNAL routine and use c code wrappers. I have the snall info file
produced by Jeff Valenti (from Mar 26, 1992) and can make his example
work. Unfortunately, when I try to get my own code to work, I am rfinding
that IDL is crashing with the following types of error message:
ld.so: call to undefined procedure _return_ from 0xf73d20f4
which seems to imply that my fortran routine is not being linked
witha library containing the RETURN routine. I am compiling using the
-c -pic options and linking with libF77.a and libm.a. Anybody have any
ideas where I'm going wrong? Unfortuately the FORTRAN code is a bit
too large to re-write it in IDL and doesn't easily lend itself to
piping.
Thanks
Tim Patterson
Cornell University Radiophysics and Space Sciences Dept
|
|
|
|
Re: calling Fortran from IDL [message #26434 is a reply to message #3502] |
Mon, 27 August 2001 11:30  |
Stein Vidar Hagfors H[1]
Messages: 56 Registered: February 2000
|
Member |
|
|
snert13@yahoo.com (R. Kotak) writes:
> I have (unsuccessfully) tried to call F77 numerical recipes routines
> from within
> IDL. I used Stein Vidar Hagfors Haugan's perl script to produce a
> C-wrapper but couldn't compile it. I'm running RedHat 6.2 (IDL 5.3).
> Some of the errors I get are "IDL_MEMINT' undeclared (first use in
> this function)"; "`N_' undeclared (first use in this function)" -
> since I know no
> C at all I have no idea how to fix the above.
Sounds like you don't have the (right version) export.h include file being
included - usually found in the $IDL_DIR/external/ directory. If you have an
old version of this, it may not have the IDL_MEMINT definition - it was added
with some (5.0????) version.
If this doesn't work, could you send me (by email) the whole "session" output
(from beginning to end), with all error messages?
--
------------------------------------------------------------ --------------
Stein Vidar Hagfors Haugan
ESA SOHO SOC/European Space Agency Science Operations Coordinator for SOHO
NASA Goddard Space Flight Center, Email: shaugan@esa.nascom.nasa.gov
Mail Code 682.3, Bld. 26, Room G-1, Tel.: 1-301-286-9028/240-354-6066
Greenbelt, Maryland 20771, USA. Fax: 1-301-286-0264
------------------------------------------------------------ --------------
|
|
|