Re: CALL_EXTERNAL and Fortran under Linux [message #20302] |
Fri, 02 June 2000 00:00 |
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 [[
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
|
|
|