next up previous 65
Next: Include Files
Up: ADAM
Previous: The ADAM_USER Directory


Compiling and Linking

Originally ADAM programs were always written in Fortran, the top-level module being written as a subroutine with a single INTEGER argument, the ADAM status. The link scripts now also accept C functions. If the top-level function is a C function, it must have a single argument of type int *. If it is not written as a Fortran-callable routine, the source file must be presented to the link script.

Note that the complete set of C interfaces for the Starlink libraries is not yet available so it may not be possible to write your program entirely in C without the aid of something like the CNF package.

To compile and link ADAM programs, it is necessary to add /star/bin to your PATH environment variable. This is done if you have `sourced' /star/etc/login to set up for Starlink software generally.





next up previous 65
Next: Include Files
Up: ADAM
Previous: The ADAM_USER Directory

ADAM
Starlink User Note 144
A J Chipperfield
17 August 2001
E-mail:ussc@star.rl.ac.uk

Copyright © 2000 Council for the Central Laboratory of the Research Councils