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-28
Running the C/C++ Compiler and Linker
invokeSchema
sets the schema for unqualified objects inside the invoke clause as schema-
name. If a schema is specified using the Control Query Default Schema or
Declare Schema, this attribute has no effect. The maximum size of the
invokeSchema attribute is 128 characters.
Example—mxsqlc
Run the SQL/MX C/C++ preprocessor using the mxsqlc command. This C++ example
creates an annotated source file and module definition file:
mxsqlc sqlprog.ecpp -c sqlprog.cpp -x -m sqlprog.m -p \
-g moduleGroup=INVENTORY -g moduleVersion=V2
This C++ example creates a single-file annotated output source file that contains an
embedded module definition:
mxsqlc sqlprog.ecpp -c sqlprog.cpp -g moduleTableSet=TEST1
Running the C/C++ Compiler and Linker
The HP NonStop C/C++ compilers translate source code into machine language that is
specific to a particular NonStop system architecture. The type of C/C++ compiler that
you use to compile your SQL/MX program determines the NonStop system and
environment where you can run the program.
Table 15-1 on page 15-28 lists the C/C++ compilers, the environments where you can
run the compilers, and the environments where you can run the compiled programs.
Note. TNS/R native compilation tools are available on systems running H06.05 or later RVUs.
Table 15-1. HP NonStop C/C++ Compilers for Embedded SQL/MX Programs
Compiler
Compiler Operating
Environment
Program Execution
Environment
TNS/E native compilers:
•
Native C cross
compiler for TNS/E
*
Windows environment on a
PC connected to a NonStop
system running an H-series
RVU
OSS or Guardian
environment on a NonStop
system running an H-series
RVU
•
c89 OSS environment on a
NonStop system running an
H-series RVU
OSS or Guardian
environment on a NonStop
system running an H-series
RVU
*
The native C cross compilers can be run from ETK or from the PC command line.










