-R

Description

At run time, searches the path directory for shared libraries.

Syntax

Read syntax diagramSkip visual syntax diagram>>- -R--directory----------------------------------------------><
 

Notes

If the -Rdirectory option is specified both in the configuration file and on the command line, the paths specified in the configuration file are searched first at run time.

The -R compiler option is cumulative. Subsequent occurrences of -R on the command line do not replace, but add to, any directory paths specified by earlier occurrences of -R.

Default

The default is to search only the standard directories.

Example

To compile myprogram.c so that the directory /usr/tmp/old is searched at run time along with standard directories for the dynamic library libspfiles.so, enter:

xlc++ myprogram.C -lspfiles -R/usr/tmp/old

Related information