next up previous
Next: Fortran Interface Up: The RNG Random Number Previous: make Interface


Including and Linking to RNG

The user must include the header file rng.h and link in the archive file librng.a to use the RNG library. The ``-I'' compiler flag can be used to tell the compiler where to locate the header file, for instance -I/usr/apps/include on Livermore Computing systems. Similarly, the ``-L'' flag can be used to tell the loader where to find the library in response the -lrng flag, for instance -L/usr/apps/lib on Livermore Computing systems. The Examples directory contains several programs that demonstrate the use of the RNG library. A README and a Makefile contain instructions for building the example programs.