+

Option Type Default Value #pragma options C C++
-flag - - x x

Syntax

-+

Purpose
Compiles any file, filename.nnn, as a C++ language file, where nnn is any suffix other than .o, .a, or .s.

Notes:
If you do not use the -+ option, files must have a suffix of .C (uppercase C), .cc, .cpp, or .cxx to be compiled as a C++ file. If you compile files with suffix .c (lowercase c) without specifying -+, the files are compiled as a C language file.

Example
To compile the file myprogram.cplspls as a C++ source file, enter:

 xlC -+ myprogram.cplspls 


List of Batch Compiler Options and Their Defaults
Equivalent Batch Compile-Link and Incremental Build Options