How do I link a Fortran subroutine from a C main program?


Many scientific libraries, especially esslbg and all BLAS libraries are written in Fortran.
To link those libraries into C main programs you have to link the Fortran compiler libraries by adding

-L/opt/ibmcmp/xlf/bg/10.1/blrts_lib -lxlfmath -lxlf90 -lxl -lm

in your link statement.


last change 23.10.2007 | Jutta Docter | Print