Option Type | Default Value | #pragma options | C | C++ |
-flag | - | - | x | x |
Syntax
-r
Purpose
Produces a relocatable object. This permits the output file to be
produced even though it contains unresolved symbols.
Notes
A file produced with this flag is expected to be used as a file
parameter in another call to xlC.
Example
To compile myprogram.c and myprog2.c into a single object file mytest.o,
enter:
xlC myprogram.c myprog2.c -r -o mytest.o
List of Compiler Options and Their
Defaults
Options that Specify Linkage Options