-B

Purpose

Specifies substitute path names for IBM® Open XL C/C++ components such as the assembler, C preprocessor, and linker.

You can use this option if you want to keep multiple levels of some or all of the IBM Open XL C/C++ executables and have the option of specifying which one you want to use.

Syntax

Read syntax diagramSkip visual syntax diagram -B prefix

Defaults

The default paths for the compiler executables are defined in the compiler configuration file.

Parameters

prefix
You must add a slash (/). If you specify the -B option without the prefix, the default prefix is /lib/o.

Usage

When you use the -B option, the prefix you specify applies to all of the compiler executables.

Predefined macros

None.

Examples

In this example, an earlier level of the compiler components is installed in the default installation directory. To test the upgraded product before making it available to everyone, the system administrator restores the latest installation image under the directory /home/jim and then tries it out with commands similar to:
ibm-clang  -B/home/jim/opt/IBM/openxlC/17.1.4/bin/ test_suite.c

Once the upgrade meets the acceptance criteria, the system administrator installs it in the default installation directory.

Related information