SQL/MX 3.2 Programming Manual for C and COBOL (H06.25+, J06.14+)
C/C++ Program Compilation
HP NonStop SQL/MX Release 3.2 Programming Manual for C and COBOL—663854-002
15-45
c89 Utility: Using One Command for All Compilation
Steps
-Wsqlmx[={"args" | args}] Invokes the SQL/MX preprocessor prior to
invoking the C or C++ compiler. Cannot be
specified with -Wsql, -Wsqlcomp, or
-Wmigrate. Ignored if any options that
prevent compilation are specified: -E, -WC,
-WH, -WM, -WP, -Wsyntax.
You can use one or more of the args,
separated by commas without space between
them.
noline Prevents the SQL/MX preprocessor from
generating #line directives in the
preprocessed C/C++ annotated source it
creates.
listing Directs the SQL/MX preprocessor to write its
diagnostic messages to a file named
file.eL (where file is the name of the
primary source file).
preprocess_only Runs the SQL/MX preprocessor only.
process_includes Processes one level of #include files.
noansi_varchars Directs the SQL/MX preprocessor to turn off
generation of ANSI varchar data.
null_terminate Automatically appends a null terminator to all
host variable character strings before they are
fetched into. Moreover, if the -a option is used
together with the -n option, the -n option has
no effect on VARCHARs. The -n option has
the potential to produce nonportable code.
refrain_r2 Directs the SQL/MX preprocessor to refrain
from embedding module definitions in the
annotated source file and to use a module
definition file.
-Wtandem_float For TNS/E targeted compilations, overrides
IEEE_float and uses Tandem floating-point
format. For correct and meaningful floating-
point values in embedded programs, this
option should be used only if the mxsqlc -o
option is not used.
-Wsqlmxadd=["args" | arg] Passes valid preprocessor commands (args)
to the SQL/MX preprocessor without change
or validation. The preprocessor validates the
syntax.










