Option Type | Default Value | #pragma options | C | C++ |
-flag | - | - | x | x |
Syntax
-B | -Bprefix | -B -tprograms | -Bprefix -tprograms
Purpose
Determines substitute path names for the compiler, assembler,
linkage editor, and preprocessor.
Notes
The optional prefix defines part of a path name to the
new programs. It must end in /.
To form the complete path name for each program, IBM C and C++ Compilers adds prefix to the standard program names for the compiler, assembler, linkage editor and preprocessor.
Use this option if you want to keep multiple levels of some or all of IBM C and C++ Compilers executables and have the option of specifying which one you want to use.
If -Bprefix is not specified, the default path is used.
-B -tprograms specifies the programs to which the -B prefix name is to be appended.
The -Bprefix -tprograms options override the -Fconfig_file option.
Example
To compile myprogram.c using a substitute xlC
compiler in /lib/tmp/mine/ enter:
xlC myprogram.c -B/lib/tmp/mine/
To compile myprogram.c using a substitute linkage editor in /lib/tmp/mine/, enter:
xlC myprogram.c -B/lib/tmp/mine/ -tl
List of Compiler Options and Their
Defaults
Options that Specify Compiler
Characteristics