next up previous contents index
Next: Compiling and Linking Up: Libraries Previous: Libraries

The cernlib command

 

The cernlib command has been designed to ease access to the CERN program library software, while allowing access to user libraries. It is platform-independent and accepts the POSIX syntax. Note that you must have the directory /cern/pro/bin in your path in order to use this command.

 
 cernlib 		 grants access to packlib

cernlib mathlib grants access to mathlib and packlib

cernlib -L $DELPHI_LIBS -l dstanaxx -l ux26xx

grants access to libraries dstanaxx and ux26xx in the directory

defined by the environment variable DELPHI_LIBS

The cernlib command is used in combination with the link command by enclosing it in back-quotes on the link command line. For example if you use the f77 command for linking:
 
               		  f77 -o  myprog myprog.o `cernlib mathlib
graflib/X11 ....`



Alan Silverman
Wed Apr 12 16:54:02 METDST 1995