HP aC++/HP C A.06.20 Programmer's Guide
When used with no symbol list, -Bprotected implies -Wl,-aarchive_shared,
causing the linker to prefer an archive library over a shared library, if one is available.
This can be overridden by following the -Bprotected option with a subsequent
-Wl,-a option.
Usage:
-Bprotected:filename
The file indicated by filename contains a list of symbols, separated by spaces or
newlines. These symbols are assigned the protected export class.
-Bprotected_data
-Bprotected_data
The -Bprotected_data option marks only data symbols as having the protected
export class.
-Bprotected_def
-Bprotected_def
The -Bprotected_def option is the same as -Bprotected but only locally defined
(non-tentative) symbols are assigned the protected export class.
-Bsymbolic
-Bsymbolic
The -Bsymbolic option assigns protected export class to all symbols. This is equivalent
to -Bprotected with no symbol list.
NOTE: This option is deprecated as of version A.06.05 and if used, it issues a warning
that -Bprotected_defis almost always what should be used in its place.
Template Options
By using a template option on the aCC command line, you can:
• Close a library or set of link units, to satisfy all unsatisfied instantiations without
creating duplicate instantiations.
• Specify what templates to instantiate for a given translation unit.
• Name and use template files in the same way as for the cfront based HP C++
compiler.
• Request verbose information about template processing.
118 Command-Line Options