Next: , Previous: Building and installing libraries with mmc --make, Up: Building with mmc --make   [Contents][Index]


6.2.2 Using installed libraries with mmc –make

Once a library is installed, it can be used by running ‘mmc’ with the following options:

mmc … --ml mypackage … --ml myotherlib … --ml my_yet_another_lib …

If a library was installed in a different place (using ‘--install-prefix <dir>’), you will also need to add this option:

mmc … --mld <dir>/lib/mercury …

Note that ‘/lib/mercury’ has to be added to the searched path. The ‘--mld’ option can be used several times to add more directories to the library search path.

You can also specify whether to link executables with the shared or static versions of Mercury libraries using ‘--mercury-linkage shared’ or ‘--mercury-linkage static’.