next up previous contents index
Next: Running a MIDAS application Up: Integrating a MIDAS Application Previous: Fortran example

C example

In this example the application program copymi is compiled and linked. The program is written in C. We assume that the code is stored in the file copymi.c. The code can also be found in Appendix D.1.1

The compilation and linking for VMS is then:

 		 $ CC /INCLUDE:([`MIDASHOME'.`MIDVERS'.INCL]) COPYMI 
$ LINK COPYMI,MID_DISK:[`MIDASHOME'.`MIDVERS'.LIB]LIBMIDAS/L

For UNIX the sequence is similar and goes as follows:


 		 % cc -I$MIDASHOME/$MIDVERS/incl -c copymi.c

% cc copymi.o -L$MIDASHOME/$MIDVERS/lib -lmidas -o copymi.exe



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