SQL/MX Programming Manual for C and COBOL (H06.10+, J06.03+)
C/C++ Program Compilation
HP NonStop SQL/MX Programming Manual for C and COBOL—544617-003
15-25
Windows-Hosted SQL/MX C/C++ Preprocessor
type REAL, this option causes the invoked structure to be of type DOUBLE. For
more information, see INVOKE and Floating-Point Host Variables on page 3-33.
By default, the c89 compiler (TNS/E targeted compilation) defaults to IEEE_float
and will invoke the -o option when it calls the preprocessor. If you want your
program to use Tandem_float, use the c89 -Wtandem_float option to compile
the mxsqlc-generated annotated source file.
-t timestamp
provides a creation timestamp that the preprocessor writes to the C/C++ annotated
source file (and the module definition file if the -x or -m preprocessor option or the
SQLMX_PREPROCESSOR_VERSION=800 environment variable is used). The
timestamp value overrides the operating system timestamp.
The preprocessing timestamp of the generated code must match the
preprocessing timestamp stored in the module. Use this option with caution and
only when you need to change the source text of the embedded SQL program
without SQL-compiling the generated code.
-d flag[=value]
is a flag macro for later use in the conditional compilation of the source file. The
flag specifies the name of the macro and must be a valid C identifier. The value
can be any integer value (positive or negative). You cannot put spaces around the
equal sign if an optional value is supplied.
The use of this option corresponds, for example, to the #define directive that
might be found in a source file (that is, #define foo 1, where 1 is the value
assigned to foo). The value can then be tested in a #if directive during
preprocessing.
Because the preprocessor does not process #include files, you must use this
option to define any macros that are typically defined in #include files and that
affect the conditional processing of the source file. You can specify the option more
than once on the command line.
-s system-name or IP-address
is the node name or IP address of the NonStop system where the tables are found
by INVOKE. This option is required if you use INVOKE.
-r ODBC-listener
is the NonStop system port to connect to for the ODBC listener process. The
default port for the Association server is 18650.
-y NSK-username
is the Guardian user name with access to the tables that INVOKE reads. This
option is required if you use INVOKE.










