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 COBOL523627-004
15-26
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 (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-34, 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
Table 15-1. HP NonStop C/C++ Compilers for Embedded SQL/MX Programs
Compiler
Compiler Operating
Environment
Program Execution
Environment
TNS/R native compilers:
Native C cross
compiler for TNS/R
*
Windows environment on a
PC connected to a NonStop
system running a G-series
RVU
OSS or Guardian
environment on a NonStop
system running a G-series
RVU
c89 OSS environment on 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 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 a
G-series RVU
Guardian or OSS
environment on a NonStop
system running a G-series
RVU
*
The native C cross compilers can be run from ETK or from the PC command line.
Note. The default C++ run-time library for NMCPLUS is version3. You can use either
version3 or version2 when you issue your C++ compiler command.