Using additional libraries with ocs

The Opal compilation system comes with a set of non-basic libraries which support additional functionality and provide an interface to other software packages such as Tcl/Tk .

An example for accessing these libraries can be found in examples/Graphics/Queens. This is an animated version of the 8-queens problem based on Opal's window library, which is in turn based on Tcl/Tk. Compile with ocs and execute:

    $ cd examples/Graphics/Queens
    examples/Graphics/Queens $ ocs
->  Generating rules for queens'Queens ...
->  Checking Signature of Queens ...
->  Compiling Implementation of Queens ...
->  Generating  object code for Queens ...
->  Generating startup code for queens ...
->  Linking queens ...
    examples/Graphics/Queens $ ./queens
If ./queens fails because of missing shared libraries, use ldd queens to check for these libraries in detail. Depending on the operation system, you may have to use ldconfig or set LD_LIBRARY_PATH to solve the problem. In general, the Opal libraries are prelinked to contain a run-path pointing to "standard" locations ( e.g. /usr/openwin/lib for the X11 library under Solaris).
The SysDefs file for this example shows how Opal's window library is included:
  examples/Graphics/Queens $ cat SysDefs 
  TOPSTRUCT = Queens
  TOPCOM = queens
  OPAL_LIBS = $(OPAL_WIN) $(OPAL_BASE)
The variable OPAL_LIBS consists of a sequence of references to predefined variables describing library packages. In version 2.3g, the following libraries are supported:
The Opal Group
Last modified: Thu Sep 16 21:34:16 MEST 1999