Building ADAM Applications that Use AST

Users of Starlink's ADAMsg4 programming environment on UNIX should use the “alinksun144ADAM_link_scripts” command (SUN/144sun144) to compile and link applications and can access the AST library by including execution of the command “ast_link_adamast_link_adam” on the command line, as follows:


\begin{terminalv}
alink adamprog.c \lq ast_link_adam\lq
\end{terminalv}

Note the use of backward quote characters.

By default, AST error messages produced by applications built in this way will be delivered via the Starlink EMS Error Message Service (SSN/4ssn4) so that error handling by AST is consistent with the inherited statussun104inherited_status error handling normally used in Starlink software.

Switches may be given to the “ast_link_adam” command (in a similar way to “ast_linkast_link”—ยง22.2) in order to link with additional AST-related facilities, such as a graphics interface. See the “ast_link_adam” command description in Appendix E for details of the options available.