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-25
Running the C/C++ Compiler and Linker
moduleCatalog
sets the moduleCatalog attribute if the input sql-file does not have a
MODULE directive or its MODULE directive does not specify a catalog name. If
the moduleCatalog option is not set, the preprocessor emits the output
MODULE directive by using the default catalog naming rules described in the
SQL/MX Reference Manual. The maximum size for the moduleCatalog
attribute is 128 characters.
moduleSchema
sets the moduleSchema attribute if the input sql-file does not have a
MODULE directive or its MODULE directive does not specify a schema name.
The moduleSchema can contain a catalog name. If the moduleSchema
attribute is not used, the preprocessor emits the output MODULE directive by
using the default schema naming rules described in the SQL/MX Reference
Manual. The maximum size for the moduleSchema attribute is 128 characters.
Example—mxsqlc
Run the SQL/MX C/C++ preprocessor by 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-26 lists the C/C++ compilers, the environments where you can
run the compilers, and the environments where you can run the compiled programs.