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

Home » Public Forums » archive » Re: CALL_EXTERNAL and Fortran under Linux
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
Re: CALL_EXTERNAL and Fortran under Linux [message #20302] Fri, 02 June 2000 00:00
Martin Schultz is currently offline  Martin Schultz
Messages: 515
Registered: August 1997
Senior Member
hmmm. In general, you won't have a "f77" compiler on your linux box.
There is either g77 or (preferred) a tool named f2c which converts the
f77 programs into c, then compiles them with gcc automatically.
Ususally, the distributions come with a frontend to f2c which makes it
easier to use. For SuSE, this is
"yaf77" (yet another f77), for RedHat I used to know it - wasn't it
named "fort77"?
You will either have to create a link from this tool to /usr/bin/f77 or
change the compiler entry in your Makefiles accordingly.

Hope this helps,
Martin

"Eric L. N. Jensen" wrote:
>
> Hi all,
> I'm trying to get up to speed with calling
> external routines in IDL, since I've got a lot of
> fortran code that I'd like to use, but I want to be
> able to easily plot the results, etc.
>
> I've been through the examples in my IDL 5.2
> distribution, and I see that the Fortran examples
> in the Makefile all give the message:
>
> "NOT Implemented for example: f77"
>
> Has anyone successfully called external fortran
> routines under Linux IDL, and if so, would you
> be willing to provide an example of compiler
> flags used, C wrapper subroutine (if needed), etc.?
>
> If not, I'll forge ahead and post the results
> when/if I figure it out.
>
> I'm using the egcs (i.e. GNU gcc/g77) compiler
> under Redhat Linux.
>
> Thanks in advance,
>
> Eric Jensen
> Dept. of Physics and Astronomy
> Swarthmore College

--
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
[[ Dr. Martin Schultz Max-Planck-Institut fuer Meteorologie [[
[[ Bundesstr. 55, 20146 Hamburg [[
[[ phone: +49 40 41173-308 [[
[[ fax: +49 40 41173-298 [[
[[ martin.schultz@dkrz.de [[
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Filtering data in multidimensional arrays
Next Topic: color printing

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

Current Time: Fri Oct 10 16:36:29 PDT 2025

Total time taken to generate the page: 0.56273 seconds