To compile and link an application with the KAPLIBS package, the following commands should be used (see SUN/144):
Note the use of opening apostrophes (‘) rather than the more common closing apostrophe (’)1.
This produces an executable image called prog. The kaplibs_dev command creates soft links within the current directory to the various include files provided by KAPLIBS. These are removed by the kaplibs_dev remove command.
The commands described above will link the application with the Starlink GKS version of the PGPLOT graphics library. If you wish to link with the native version of PGPLOT, then include the switch “-nogks” as follows:
This will include native PGPLOT in the link list, and cause all GKS and IDI related items to be removed.
1Currently, the parameter handling routines within KAPLIBS have not been separated out, and so it is not currently possible to link stand-alone (i.e. “non-Adam”) applications against KAPLIBS.