next up previous 264
Next: ...Read a WCS Calibration from a Dataset
Up: How To...
Previous: ...Structure an AST Program


...Build an AST Program

To build a simple AST program that doesn't use graphics, use:

f77 program.f -L/star/lib -I/star/include `ast_link` -o program

On Linux systems you should usually use g77 -fno-second-underscore in place of f77 - see ``Software development on Linux'' in SUN/212.

To build a program which uses PGPLOT for graphics, use:

f77 program.f -L/star/lib `ast_link -pgplot` -o program

again using g77 -fno-second-underscore in place of f77 on Linux systems.

For more details about accessing AST include files, see [*]. For more details about linking programs, see [*] and the description of the ``ast_link'' command in [*].


next up previous 264
Next: ...Read a WCS Calibration from a Dataset
Up: How To...
Previous: ...Structure an AST Program

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