Rogue Wave banner
Previous fileTop of DocumentContentsNext file

4.8 Compiling in Unix

This section describes how to use Unix compilers to compile programs that use Rogue Wave's Money.h++ class library.

To use the Money.h++ library in your own program:

  1. Add the directory containing the Money.h++ header files to your include list.

  2. Link to the appropriate Money.h++ and Tools.h++ libraries.

For instance, to build a program called myapp you might use the following command line (all on one line):

The example assumes the library was exported to the rwav/workspaces/SOLARIS251/SUNPRO420/4s directory.

4.8.1 Using a Static Version of Money.h++ (Unix)

If you linked to a static Money.h++ library, you are ready to run the resulting program.

4.8.2 Using a Shared Version of Money.h++ (Unix)

If you linked to a shared Money.h++ library, before running the resulting program, be sure that the library location is available in the environmental variable that your operating system uses to describe the possible locations of shared libraries. For many operating systems, this environmental variable is LD_LIBRARY_PATH. Some operating systems use a different name; be sure to use the one appropriate to your operating system.

This step is recommended for all shared Unix Money.h++ libraries, and required for some platforms.

You may set the library path variable from your shell or by including it in your rc or profile script.

For example, in a Korn or Bourne shell, if your library is installed in the /rwav/workspaces/SOLARIS251/SUNPRO420/4s/lib directory, use the following command (all on one line):

If you are running in other than a Bourne or Korn shell, the command is:

For more information on compiling using shared libraries, review the Money.h++ readme files located in <rw_root>/parts/mny<ver>u/docs.



Previous fileTop of DocumentContentsNext file

©Copyright 1999, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.