Open System Services Shell and Utilities Reference Manual (G06.29+, H06.08+, J06.03+)
c99(1) OSS Shell and Utilities Reference Manual
-l l Contains all functions required by the C language output of the lex utility that are not
made available through the -l c operand.
-l m Contains all functions referenced in the math.h header file.
-l y Contains all functions required by the C language output of the yacc utility that are not
made available through the -l c operand.
In the absence of flags that inhibit invocation of a linker utility, such as -c and -E, c99 directs the
linker to search the standard C library after all other object files and libraries are searched.
If a C++ source file operand or a -Wcpluscplus flag is specified, c99 directs the linker to search
the C++ run-time library before it searches the standard C library. If you want the libraries to be
searched in a specific order or linking options to be processed in a specified order, you should
start the appropriate linker (eld) directly from the OSS shell and not use the c99 command to do
the linking.
Libraries residing in the Guardian file system cannot be specified as -l operands because of the
naming convention. They can be specified in the desired order with the -Weld flag.
Standard Include Directories
The standard include directory contains the standard C and C++ header files. c99 passes a -I flag
naming this directory as the last -I flag when processing source files. In the OSS environment,
the directory is /usr/include.
Standard Library Directories
The standard library directories contain the dynamic-link libraries (DLLs) used by the eld utility
to resolve external references.
In the OSS environment, a linker first searches the directory that contains the current version of
the operating system image (the active /G/system/sysnn directory). The linker then searches the
/lib, /usr/lib, and /usr/local/lib directories.
The value of the COMP_ROOT environment variable is added to the beginning of /lib, /usr/lib,
and /user/local/lib. By default, the value of COMP_ROOT is null in the OSS environment.
See the eld(1) reference page for more information about controlling the search order for a PIC
file linker.
Default Flags
If no flags are specified, c99 behaves as if the following flags were specified:
-Wsystype=oss -o a.out -Wenv=common -Wfieldalign=auto
-Wrefalign=8 -Wansistreams -Winline
-WIEEE_float
-Wlist -Wnoinnerlist -Wsuppress -Wstdfiles -Wnomap
-Wnoextensions -Wnooverflow_traps -Wnoremarks
-Wnoinspect -Wnosaveabend -WBdynamic
-Wcall_shared
-Wnoincludewhole -Wnoreexport -Wnooptionl_lib
-Wversion3
-Wwarn
-D_XOPEN_SOURCE -I/usr/include -L/lib -L/usr/lib
-L/usr/local/lib -lc
2−58 Hewlett-Packard Company 527188-021