On Thu, 13 Mar 2025 18:19:53 -0500, Charles Mills <[email protected]> wrote:
>On Thu, 13 Mar 2025 09:45:02 -0500, Linda Chui <[email protected]> wrote: > > > >>Assuming your -mzos-sys-include comes from >>https://www.ibm.com/docs/en/open-xl-c-cpp-zos/2.1?topic=compiler-jcl-example, >>you can see the preamble states it is for C (non-XPLINK). >> >>There is a USS (or shell) example given in the same document at >>https://www.ibm.com/docs/en/open-xl-c-cpp-zos/2.1?topic=applications-compiling >> which includes both C and C++ compilation parts. >> >>Please do ensure your z/OS service level is up to date as well as there may >>have been changes to the system, compiler, header files, etc. >>In general, you should NOT need to specify -mzos-sys-include explicitly since >>the install configuration should have set all the defaults for you. > >Thank you. Between your help and the ztech help I have one clean C++ compile. > >I have *a lot* of questions that do not seem to be answered by the compiler >documentation: > >- The CLANG manual seems to be pretty necessary. Is it anywhere in the IBM >documentation tree? >- In >https://www.ibm.com/docs/en/open-xl-c-cpp-zos/2.1?topic=options-supported-clang > what is the significance of some options being listed in *not bold* type? >- The reason I missed the JCL PROC examples is that the (only) manual has >compiler invocation instructions in two disparate places: "Invoking the >Compiler" and "Compiling." That is confusing. >- The error message that I cited in my previous post is wrong -- otherwise I >might have figured things out for myself. It says the compiler requires z/OS >2.1 or above (which is confusing because I am running on 3.1) when the real >error is "C header used in a C++ compile" or something like that. >- How do I specify the target ARCH level (like I can with the legacy compiler)? >- How do I specify the OPT level (like I can with the legacy compiler)? > >Thank you, >Charles > >---------------------------------------------------------------------- >For IBM-MAIN subscribe / signoff / archive access instructions, >send email to [email protected] with the message: INFO IBM-MAIN The Clang manual is linked off of our documentation. See the bottom of https://www.ibm.com/docs/en/open-xl-c-cpp-zos/2.1?topic=pdf-format-documentation for a link. It is also present in a number of other places such as the “Related information” section in https://www.ibm.com/docs/en/open-xl-c-cpp-zos/2.1?topic=reference-compiler-options. The bolding of the options appears to be a formatting error and has no significance. Thank you for the feedback on the issue with two separate compiling sections. You can always provide feedback on the documentation online so it can be looked at. To specify the architecture level, use the -march=<value> option. For optimization, the line in the options list starting with -O is the list of optimization options (-O, -O1, -O2, -O3, -Ofast, -Os, -Oz). These options are described here: https://www.ibm.com/docs/en/SSUMVNF_2.1/pdf/Clang.pdf#page=288 Hope this helps. z/OS XL C/C++ Compiler Team ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
