Previous: Fortran sample program, Up: Fortran interface [Contents][Index]
In order to be able to reference GNU libmatheval
procedures
from Fortran code, declarations of procedures that will be used should
be repeated, like demonstrated by Fortran sample program (once
when interface upgraded to Fortran 90, modules and use
statement will be employed here). Command for compilation Fortran
program using library and stored in file example.f using GNU
Fortran 77 compiler would look like (again supposing that library is
installed using default prefix /usr/local/lib):
f77 example.f -ff90 -ffree-form -L/usr/local/lib -lmatheval -o example