next up previous 248
Next: Workstation Description File Keywords
Up: GNS [2.5exrkstation
Previous: Error Messages


Compiling and Linking Programs with GNS

To include either of the GNS include files, create links in the directory containing the program source code with the command:

gns_dev
and use and include statement such as:
      INCLUDE 'GNS_ERR'
      INCLUDE 'GNS_PAR'

The link procedures for most high level graphics packages (e.g. IDI, SGS etc.) already contain a reference to GNS. Programs that do not link with such packages can be linked to GNS by using the shell script gns_link or gns_link_adam. For example to compile and link an ADAM task called `task.f' the following is used

      % alink task.f `gns_link_adam`
(note the use of the backward quotes)

To compile and link a standalone application called `prog.f' the following is used

      % f77 prog.f -o prog `gns_link`



next up previous 248
Next: Workstation Description File Keywords
Up: GNS [2.5exrkstation
Previous: Error Messages

GNS [2.5exrkstation
Starlink User Note 57
David Terrett & Nicholas Eaton
12 July 1995
E-mail:ussc@star.rl.ac.uk

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