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-41
c89 Utility: Using One Command for All Compilation
Steps
SQL/MX preprocessor works, see OSS-Hosted SQL/MX C/C++ Preprocessor on
page 15-16.
Compiling C/C++ Statements
Use the c89 utility to compile the C/C++ statements in a preprocessed file to create an
object (.o) file. The c89 utility determines which compiler to use based on the file
extension you use (.ec or .sql for embedded SQL/MX C programs, .ecpp for
embedded SQL/MX C++ programs, and .c for embedded SQL/MP C programs). For a
list of file extensions for SQL/MX source files, see Program Files on page 17-1.
Your application program can run in the OSS or Guardian environment. Use the c89
-Wsystype=oss option (which is the default) if you want your application to be an
OSS program. Use the c89 -Wsystype=guardian option if you want your
application to be a Guardian program. For more information, see Building SQL/MX
Guardian Applications in the OSS Environment on page 15-64.
SQL/MX Compiling
Use the -Wmxcmp[=args] command to invoke the SQL/MX compiler. For a full
description of how to use the SQL/MX compiler, see Running the SQL/MX Compiler on
page 15-30.










