wiki:F2c

{{Infobox_Software2|

name = f2c

|logo = |screenshot = |caption = |maintainer = haf |operating_system = Linux |genre = Compiler/Converter |license = ? |website =  www.netlib.org/f2c |source = same as website }}

Fortran to C converter. Needed by the Video Processing Toolkit BIAS .

Installation

  • Download sources, unzip: wget  http://www.netlib.org/f2c/libf2c.zip unzip libf2c.zip
  • Copy Unix Makefile, create c++ headers, build cd libf2c cp makefile.u makefile make hadd
  • Edit Makefile, add some flags as stated in the makefile comments, run make emacs makefile --> CFLAGS = -O -DNON_UNIX_STDIO -fPIC make libf2c.so
  • install (must be root) cp f2c.h /usr/include cp libf2c.so /usr/lib