next up previous contents index
Next: C example Up: Integrating a MIDAS Application Previous: Integrating a MIDAS Application

Fortran example

The first example is the application program SMOOTH. This program is written in FORTRAN 77 (with the ESO defined extensions); the complete code may be found in Appendix D.1.1. We assume that the program code is stored in the file smooth.for.

The compilation and linking for VMS is then:

 		 $ FORTRAN SMOOTH 
$ LINK SMOOTH,MID_DISK:[`MIDASHOME'.`MIDVERS'.LIB]LIBMIDAS/L

For UNIX we first have to apply the ESO precompiler to produce a file smooth.f which can then be used for compilation and linking as follows:


 		 % $MIDASHOME/$MIDVERS/system/exec/esoext.exe \ 

-I$MIDASHOME/$MIDVERS/incl -f smooth.for
% f77 -c smooth.f
% f77 smooth.o -L$MIDASHOME/$MIDVERS/lib -lmidas -o smooth.exe

Note
Remember, that the precompiler expects the FORTRAN source code in upper case, in order to work correctly...



Send comments to web@eso.org
Last update: 1998-10-23