Open System Services Shell and Utilities Reference Manual (G06.27+, H06.04+)
User Commands (c) c89(1)
-Wallow_cplusplus_comments
Directs the compiler to allow comments that use the C++ comment style in C source
files.
-Wallow_extern_explicit_instantiation
Allows an extern storage attribute to be applied to an explicit template instantiation.
This flag suppresses the instantiation of the template. If this
flag is omitted, the tem-
plate is instantiated.
The -Wallow_extern_explicit_instantiation
flag is valid only for TNS/R-targeted C++
compilations.
-Wansistreams
Generates a Guardian program that opens text files as type 180 instead of type 101 if
-Wsystype=guardian is specified. (By default Guardian programs open text files as
type 101.) This flag is ignored when -Wsystype=oss is used. OSS programs can open
text files only as type 180.
-WBdllsonly
Tells the ld or eld linker to limit searches to position-independent code (PIC) files that
are dynamic-link libraries (DLLs) when resolving the file names specified for the -l
operands and -L flags.
If a file name is qualified, the linker searches for a DLL with that name.
If a filename is unqualified, in each search path, the linker first searches for a DLL with
the file name as specified in the -l operand or -L flag. If the linker cannot find a DLL,
the file name is unqualified, and the search path is not in the Guardian file system (/G),
then the linker prefixes lib and suffixes .so to the file name and searches again. If the
linker still cannot find the DLL, it searches the path again with the same prefix but with
.srl as the suffix. For more information on search paths, see the Finding Libraries
subsection of the ld(1) or eld(1) reference page under DESCRIPTION.
When a DLL cannot be found, the linker issues an error message unless its
-allow_missing_libs flag is specified.
The -WBdllsonly, -WBdynamic, and -WBstatic flags are search control toggles.
Multiple flags can be specified in a single linker invocation; the behavior specified
remains in effect until another flag in the set is specified. Thus, you can search for both
DLLs and archive files for some -l operands and -L flags and search for just archive
files for others. The default library search control is -WBdynamic.
-WBdynamic
Specifies that the linker utility uses dynamic linking when searching for libraries
specified in subsequent operands of the form -l library. Dynamic linking is in effect
until a -WBstatic flag is specified. -WBdynamic is the default setting. Refer to the
Dynamic and Static Linking subsection for details.
-WBstatic
Specifies that the linker utility uses static linking when searching for libraries specified
in subsequent operands of the form -l library. Static linking is in effect until a
-WBdynamic flag is specified. -WBdynamic, not -WBstatic, is the default setting.
Refer to the Dynamic and Static Linking subsection for details.
527188-004 Hewlett-Packard Company 2−5