TNS/R Native Application Migration Guide

C and C++ Migration Tasks
TNS/R Native Application Migration Guide523745-001
3-4
Running nmcmt in the OSS Environment
Running nmcmt in the OSS Environment
The nmcmt utility is located in the /usr/bin directory.
The command syntax for nmcmt is a simplified version of the command syntax for the
TNS c89 utility, as shown in the following diagram:
flag
is a valid nmcmt flag, where flag is one of the following.
-I directory
adds directory to the list of directories searched to locate #include files
with relative pathnames.
-D identifier [=value]
defines identifier as a preprocessor symbol. If no value is specified,
identifier is defined as 1. If value is specified, identifier is defined as
an object-like macro that expands to the given value. -D is equivalent to using
the #define directive in source text. The -D flag has lower precedence than
the -U flag. Thus, if the same identifier is specified in both a -U and a -D flag,
the identifier is undefined regardless of the order of the flags.
-o listing-file
specifies the file to which nmcmt writes its diagnostic listing. If the -o flag is
omitted, nmcmt writes its diagnostic listing to standard output, stdout.
-U identifier
deletes identifier as a preprocessor symbol. -U is equivalent to using the
#undef directive in source text.
source
specifies an OSS filename for the source file to analyze. Additional source files can
be specified by using #include directives in the source file.
nmcmt [flag...] source