5 Linking

All the routines in the NCAR library have standard Fortran six character names, so you must beware of your own routines having the same names as these library routines. If this happens, the linker will not report any error and the subsequent aberrant behaviour of your program will not point unambiguously to the source of the problem. The names of all the routines in the library are listed in Appendix B.

To link a non-ADAM program with NCAR the command line is:

  % f77 program.o -L/star/lib ‘ncar_link‘ -o program.out

By default, the DASHCHAR dashed line drawing package is used. If one of the other line drawing packages (DASHLINE, DASHSMTH or DASHSUPR which all reside in the directory /star/lib) is required, it must be included in the link command explicitly, e.g.:

  % f77 program.o /star/lib/dashsmth.o -L/star/lib ‘ncar_link‘ \
         -o program.out

will use the DASHSMTH package. Similarly, the default version of the CONREC family of contour routines is CONREC which can be replaced by CONRECQCK or CONRECSUPR in the same way.

To link an ADAM application with NCAR the command line is:

  % alink application.o ‘ncar_link_adam‘

SUN/144 gives further details of compiling and linking ADAM applications with the UNIX operating system.