Before compiling applications which use HDS routines on UNIX systems, you should normally "log in" for HDS software development with the following shell command:
hds_dev
This will create links in your current directory which refer to the HDS include files. You may then refer to these files using their standard (upper case) names without having to know where they actually reside. These links will persist, but may be removed at any time, either explicitly or with the command:
hds_dev remove
Stand-alone applications which use HDS may be linked by specifying `hds_link` on the compiler command line. Thus, to compile and link a stand-alone application called "prog", the following might be used:
f77 prog.f -L/star/lib `hds_link` -o prog
Note the use of the "-L" flag to specify the location of the
Starlink libraries and the backward quote characters
which perform command substitution.
Users of the ADAM programming environment (SG/4) on UNIX systems need take no special steps in order to link with HDS because the normal commands for building ADAM tasks will do this automatically. Thus, for instance, an A-task which calls HDS routines might be built simply as follows:
alink prog.f
HDS Hierarchical Data System