2021-03-11 06:56:23 +01:00
|
|
|
|
2017-06-19 00:20:09 +02:00
|
|
|
f2c is a Fortran-to-C converter.
|
|
|
|
|
2021-03-11 06:56:23 +01:00
|
|
|
This package includes libf2c, which must be linked to the resulting C
|
|
|
|
code.
|
2017-06-19 00:20:09 +02:00
|
|
|
|
2021-03-11 06:56:23 +01:00
|
|
|
Thus the general idea is: f2c foo.f; gcc foo.c -lf2c
|
2017-06-19 00:20:09 +02:00
|
|
|
|
|
|
|
Or use the fc script provided in the docs directory. Beware, fc is also
|
|
|
|
a bash builtin.
|
|
|
|
|
2021-03-11 06:56:23 +01:00
|
|
|
f2c used to use two separate libraries, libi77 and libf77. These are
|
|
|
|
now rolled together into libf2c. Beware, libf2c carries a separate
|
|
|
|
version number from f2c itself. The version number associated with the
|
|
|
|
SlackBuilds package is the f2c version number.
|
|
|
|
|
|
|
|
If combining with gfortran, you may want to use gfortran -ff2c. See the
|
|
|
|
gfortran man page.
|
|
|
|
|
|
|
|
Multiple files must be downloaded because netlib doesn't provide a
|
|
|
|
convenient single tarball.
|
|
|
|
|