SQL/MX Programming Manual for C and COBOL (G06.24+, H06.03+)
C/C++ Program Compilation
HP NonStop SQL/MX Programming Manual for C and COBOL—523627-004
15-34
c89 Utility: Using One Command for All Compilation
Steps
c89 Utility: Using One Command for All
Compilation Steps
In the OSS environment, the c89 utility provides the interface to C/C++ compilation
components, including the SQL/MX C/C++ preprocessor, the native C and C++
compilers, native C run-time library, and the native object file linker (nld). The c89
utility enables you to build an embedded SQL C or C++ program in a single command.
You can also use c89 utility options individually: for example, to run the SQL/MX
compiler after preprocessing.
In the Windows environment, the c89 utility is bundled with ETK. For details on syntax
and use, see the help file Using Command-Line Cross Compilers on Windows, which
is included with ETK. In addition, the Open System Services Shell and Utilities
Reference Manual contains a listing of all c89 utility options.
The c89 utility is installed in the /usr/bin directory.
c89 Utility Options for SQL/MX
-WDname[=value] Specifies a macro that sends class MAP
DEFINEs for the SQL/MX preprocessor to use
for conditional compilation during the SQL/MX
preprocessing step.
-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.