SQL/MX 3.2 Programming Manual for C and COBOL (H06.25+, J06.14+)

C/C++ Program Compilation
HP NonStop SQL/MX Release 3.2 Programming Manual for C and COBOL663854-002
15-44
c89 Utility: Using One Command for All Compilation
Steps
Example—mxcmp
The following command compiles the module definition and places module file in the
user specified OSS location, /usr/mymodules:
mxcmp -g moduleLocal=/usr/mymodules sqlprog.m
The following command compiles the module definition and places module file in the
user specified Guardian location, /G/data01/mymod:
mxcmp -g moduleLocal=/G/data01/mymod sqlprog.m
c89 Utility: Using One Command for All
Compilation Steps
In the OSS environment, the c89 utility provides the interface to C/C++ compilation
components, including the SQL/MX C/C++ preprocessor, the native C and C++
compilers, native C run-time library, and the native object file linker (eld or nld). nld
is available on systems running H06.05 or later RVUs. The c89 utility enables you to
build an embedded SQL C or C++ program in a single command. You can also use
c89 utility options individually: for example, to run the SQL/MX compiler after
preprocessing.
In the Windows environment, the c89 utility is bundled with ETK. For details on syntax
and use, see the help file Using Command-Line Cross Compilers on Windows, which
is included with ETK. In addition, the Open System Services Shell and Utilities
Reference Manual contains a listing of all c89 utility options.
The c89 utility is installed in the /usr/bin directory.
c89 Utility Options for SQL/MX
-WDname[=value] Specifies a macro that sends class MAP
DEFINEs for the SQL/MX preprocessor to use
for conditional compilation during the SQL/MX
preprocessing step.