next up previous
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  

Before compiling software which uses AST facilities, you should normally ``log in'' for AST software development with the following command:

ast_dev

This will create links in your current directory which refer to the AST include files (for both Fortran and C). You may then refer to these files using their standard (upper case) names without having to know where they actually reside, for example:

      INCLUDE 'AST_PAR'

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 ([*]).
The links created by ``ast_dev'' will persist, but may be removed at any time, either explicitly or with the command:

ast_dev remove

If you do not use ``ast_dev'', then references to AST include files should be in lower case and must contain an absolute file name identifying the directory where they reside, for instance:

      INCLUDE '/star/include/ast_par'

The former method is strongly recommended.



next up previous
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
30th April 2003
E-mail:ussc@star.rl.ac.uk

Copyright (C) 2003 Central Laboratory of the Research Councils