5 Compiling and Linking

To use the PSX routines, you first need to ‘log on’ for development by using the psx_dev command to create the necessary soft links in your directory so that you can use the short form of the include file names.

  % psx_dev

If a FORTRAN program wishes to check for a particular error status returned by a PSX routine, then it should contain the line

  INCLUDE ’PSX_ERR’

The use of upper-case in the file name is important. This will define the symbolic constants listed in appendix B.

To compile and link a program that uses the PSX library, type

  % f77 program.f -L/star/lib ‘psx_link‘ -o program