next up previous contents
Next: File Input/Output Up: LNF Programming Environment Previous: C Compiler

CERNLIB

As with any other UNIX machine, the references to libraries may be in an absolute way (specifing the full file path) or in the POSIX way, using the options -l and -L. HP-UX did not adopt the POSIX standards in their implementation of f77, but instead they kept their previous interface fort77. A linking statment is performed in one of these two ways:

This approach is fine for a few libraries but for more complicated situations, CERNLIB variable simplifies command scripts. This variable is set locally with the cernlib command in two equivalent ways (Note the use of back quotes of this example):

setenv CERNLIB `cernlib geant pawlib graflib/X11`



Massimo CARBONI
Wed Feb 14 19:03:34 WET 1996