6 COMPILING AND LINKING

 6.1 Unix
 6.2 VMS

6.1 Unix

Before attempting to compile or link applications, the Starlink executables directory (normally /star/bin) should be added to your PATH. Links to the installed include files for PRIMDAT may then be set up in your current working directory by executing the command:

  % prm_dev

and applications containing INCLUDE file names in upper case, in the normal way, may be compiled and linked with the commands:

  % f77 -o prog prog.f ‘prm_link‘

for stand-alone applications, or:

  % alink prog.f ‘prm_link_adam‘

for ADAM applications.

6.2 VMS

The files required for compilation and linking with the routines in this package reside in a directory with logical name PRIMDAT_DIR. Before attempting to compile or link applications, logical names must be defined for the required files by executing the DCL command:

  $ @PRIMDAT_DIR:START

Applications which contain Fortran INCLUDE statements referring to files in this directory may then be compiled.

Applications should be linked with routines from this package using the link options file PRM_LINK. For instance, to link an application called PROG, the DCL command:

  $ LINK PROG,PRM_LINK/OPT

might be used. To link an ADAM application, the $LINK command would be replaced by the ADAM command $ALINK.