At a Starlink node the library is available as an archive of object modules. Since it is intended primarily for Starlink application packages, the link command used is most probably ‘alink’. In that case link as follows:
The library can equally well be used by ordinary programs:
The pda_link
and pda_link_adam
scripts results in your program being linked with the Starlink
Error Message Service (EMS). When an error report is to be made, the library will call
EMS_SETC and EMS_REP, and you have to link your program against a version of these
routines.
If you do not want to link against EMS, then you can provide your own replacements for the two EMS routines. Use the following code:
Then link:
Finally, if your site is not a Starlink site, you can customise the library as such to make EMS obsolete. For this you have to replace the error handling routine PDA_XERMSG in the library. The new code should be
You might also modify the link script pda_link so that it does not refer to ems_link any more and does not execute any awk command: