Before building any AST program, you may want to issue the UNIX command:
ast_dev
which will set up links to the AST include files in your current directory. Then, to build a simple AST program that doesn't use graphics, use:
cc program.c -L/star/lib `ast_link` -o program
To build a program which uses PGPLOT for graphics, use:
cc program.c -L/star/lib `ast_link -pgplot` -o program
For more details about accessing the ``ast.h'' header file, see
and the description of the
``ast_dev'' command in
. For more
details about linking programs, see
and the
description of the ``ast_link'' command in
.
AST A Library for Handling World Coordinate Systems in Astronomy