By "compiler options" I mean what the compiler documentation calls "compiler
options." See Chapter 4 of the User's Guide for a description of compiler
options.

The problem is that there is apparently no way to specify ARCH(9) at a
"global/default" sort of level and then override it at a particular module
level.

Charles

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On
Behalf Of Jack J. Woehr
Sent: Thursday, November 26, 2015 9:49 AM
To: [email protected]
Subject: Re: Any clever way to defeat the C compiler's options precedence?

Robert A. Rosenberg wrote:
>
> Will using this use of ifndef solve the issue that if a compiler 
> option is set at launch time due to being coded in the JCL or via a DD it
can/will override the pragma supplied setting?

There are so many "things" in C/C++ compilation I have to look back in this
thread and see what specifically you're up against.

If you posted the exact problem.

Let me go to the archives and get back to you.

> The issue that was raised is that there is apparently no way to 
> override the global settings via a pragma in the source code of a 
> module being compiled. Unless this happens all the ifndef does is supply
options to be used when compiling under Z/OS SO LONG AS THE COMPILER does
not override the requested option due to a Global Default override.

There's "compiler options" like what kind of error output goes where, and
there's "compiler options" like how the C/++ preprocessor interprets stuff
and they overlap.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to