SQL/MX 3.1 Programming Manual for C and COBOL (H06.23+, J06.12+)
C/C++ Program Compilation
HP NonStop SQL/MX Release 3.1 Programming Manual for C and COBOL—663854-001
15-34
Running the SQL/MX Compiler
On Windows, you can run the C/C++ compiler and native object file linker from ETK, or
you can use the command-line cross compiler c89 and the linker (eld or nld). For
details on syntax and using the C/C++ cross compiler with ETK, see the help file Using
Command-Line Cross Compilers on Windows, which is included with ETK.
To run the C/C++ compilers, see the C/C++ Programmer’s Guide. To run the eld
linker, see the eld Manual. To run the nld linker, see the nld Manual. For more
information on the c89 utility, see c89 Utility: Using One Command for All Compilation
Steps on page 15-42, the OSS reference pages, or the Open System Services Shell
and Utilities Reference Manual.
Running the SQL/MX Compiler
The SQL/MX compiler compiles and optimizes static and dynamic SQL statements for
subsequent execution by the SQL/MX executor and performs these functions:
Expands SQL object names by using the current default settings
Expands view definitions
Performs type checking for C/C++ and SQL data types
Checks SQL object references to verify their existence
Determines an optimized execution plan and access path for each DML statement
if the SQL objects in the statement are present at compile time
c89 OSS environment on a
NonStop system running
H06.05 or later RVU or a
NonStop system running a
G-series RVU
OSS or Guardian
environment on a NonStop
system running a G-series
RVU
NMC (C) Guardian environment on a
NonStop system running
H06.05 or later RVU or a
NonStop system running a
G-series RVU
Guardian or OSS
environment on a NonStop
system running a G-series
RVU
NMCPLUS (C++) Guardian environment on a
NonStop system running
H06.05 or later RVU or a
NonStop system running a
G-series RVU
Guardian or OSS
environment on a NonStop
system running a G-series
RVU
Note. The default C++ run-time library for CPPCOMP and NMCPLUS is version3. You can
use either version3 or version2 when you issue your C++ compiler command.
Table 15-1. HP NonStop C/C++ Compilers for Embedded SQL/MX Programs
Compiler
Compiler Operating
Environment
Program Execution
Environment
*
The native C cross compilers can be run from ETK or from the PC command line.










