-+ (plus sign) (C++ only)
In z/OS® XL
C/C++, you could use the -+ option to compile any source file as a C++
language file. The -x c++ option, which is supported by Open XL C/C++ for z/OS,
has an equivalent function that treats all files as C++ source files regardless of their file
suffixes. Note the following differences between -x c++ and -+:
- The -+ option is not sensitive to position on the command line. You can specify the input files and the -+ option in any order on the command line. However, the -x c++ option affects only the files that are specified following the option on the command line, but not those that precede the option.
- The -+ option treats all source files as C++ except files that have
the
.a,.o,.so,.S, or.ssuffixes. However, the -x option accepts all these file suffixes. For example, if you specify thea.ofile after -x c++ on the command line, the compiler treatsa.oas ac++file, which might result in errors.