NEC-LIST:Possible solution for FORTRAN compilation problems on Unix/Linux

From: Rob <rob_at_email.domain.hidden>
Date: Fri, 13 Sep 2002 19:43:06 -0700

Hi all,

I've frequently run into problems compiling FORTRAN code like NEC with
gcc. Usually they are programs that have been partially (hacked)
converted to double-precision.

My solution is to use the program "f2c" which converts FORTRAN to C
code. One of the options is -r8 which promotes variables/functions to
double precision. F2c is available on FreeBSD as a port and on Linux as
an RPM.

Once you get the program.c code from f2c, you issue the command "cc -o
program program.c -lf2c -lm", and you get the executable.

Hope this helps someone out.

Rob.

-- 
-----------------------------
The Numeric Python EM Project
www.pythonemproject.com
-- 
The NEC-List mailing list <nec-list_at_gweep.ca>
http://www.gweep.ca/mailman/listinfo.cgi/nec-list
Received on Sat Sep 14 2002 - 02:48:36 EDT

This archive was generated by hypermail 2.2.0 : Sat Oct 02 2010 - 00:10:42 EDT