Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)
c89(1) OSS Shell and Utilities Reference Manual
FLAGS
-c | -Wnolink
Compiles the specified C or C++ source files but suppresses linking, even if another
flag specifies linking.
You cannot specify the -c flag if you use the -Wshared flag.
-D name[="value" ]
Defines the preprocessor symbol name as value. It is equivalent to a #define directive
in the source. If no value is given, name is defined as 1. The -D flag has lower pre-
cedence than the -U flag. Thus, if name is specified in both a -U and a -D flag, name is
undefined regardless of the order of the flags.
Use this flag to define compiler feature-test macros.
When the NonStop SQL/MX preprocessor is invoked, all -D specifications are
automatically passed to the preprocessor as the preprocessor’s
-d options.
-E Preprocesses the specified source files. No compilation or linking is performed. Out-
put is sent to the standard output file and contains #line directives.
If the -Wsql flag is specified, embedded NonStop SQL/MP statements are processed.
If the -Wsqlmx flag is specified, embedded NonStop SQL/MX statements are pro-
cessed.
The -WH and -WM flags override the -E flag.
-g Produces in the object or executable files information (symbol tables) used for sym-
bolic debugging.
-I directory
Adds directory to the list of directories searched to locate #include files with relative
pathnames. (Relative pathnames do not begin with a slash, ’/’). #include filenames
enclosed in double quotes are searched for first in the directory of the file with the
#include directive, then in directories named with -I flags, and last in the standard
include directories. #include filenames enclosed in angle brackets (<>) are searched
for first in directories named with -I flags and then in the standard include directories.
Refer to the Standard Include Directories subsection for details.
-L directory
Adds directory to the list of directories searched to locate libraries specified by
operands of the form -l library. See the Operands subsection for details.
-o outfile Uses the pathname outfile instead of the default pathname a.out for the name of the
output object file.
If only one source file is specified and the -c flag is specified, the generated output is
placed into outfile. Only one -o flag can be specified. The file specified cannot be an
SQL preprocessing output file.
If a single source file is compiled and linked in one invocation of c89, and if the outfile
is the same name as that of the input object file, c89 issues a warning message and
places the output in a temporary file.
-O Sets the compiler to optimization level 2. This flag is equivalent to a -Woptimize=2
flag.
2−4 Hewlett-Packard Company 527188-007