next up previous 264
Next: Linking with AST Facilities
Up: Compiling and Linking Software that Uses AST
Previous: Compiling and Linking Software that Uses AST


Accessing AST Include Files

The include files provided for use with Fortran are:

AST_PAR

Declares the types of all AST functions and defines parameter constants, except those that identify error values.

AST_ERR

Defines parameter constants to represent the various error values to which the AST error status may be set when an error occurs ([*]).

References to AST include files should be in upper case. Most modern Fortran compilers allow the directory to be specified as a command line option:

f77 prog.f -I/star/include -o prog

If you are using such a compiler then your Fortran source code should, for instance, include:

      INCLUDE 'AST_PAR'

(that is, there is no need to include the directory within the INCLUDE statement). If your compiler does not provide such an option then your source code must contain an absolute file name identifying the directory where the include files reside, for instance:

      INCLUDE '/star/include/AST_PAR'



next up previous 264
Next: Linking with AST Facilities
Up: Compiling and Linking Software that Uses AST
Previous: Compiling and Linking Software that Uses AST

AST A Library for Handling World Coordinate Systems in Astronomy
Starlink User Note 210
R.F. Warren-Smith & D.S. Berry
24th May 2011
E-mail:ussc@star.rl.ac.uk

Copyright (C) 2009 Science \& Technology Facilities Council