HP aC++/HP C A.06.25 Programmer's Guide
Table 12-2 Obsolete Command-Line Options (continued)
DescriptionOption
Enables exception handling in HP C++.
In HP aC++, exception handling is enabled by default. To disable exception handling
off, compile with the +noeh option.
+eh
Library Option
In HP C++, this option instructs runtime system to traverse the shared library list in a
depth-first manner when calling static constructors and when loading the libraries. The
default is to traverse the shared libraries in a left-to-right order when calling static
constructors. The order of execution of static constructors within each shared library is
not affected by this option.
In HP aC++, -depth functionality is the default option.
-depth
Preprocessor Options
Requests the compatibility mode HP C++ preprocessor, cpp. This option is not available
in HP aC++.
-Ac
Prevents the preprocessor from stripping comments from your source file. In HP aC++
comments are retained.
-C
The -W option no longer accepts p as a subprocess parameter. In HP aC++, there is no
separate subprocess for the preprocessor.
Use the CC command (HP C++) as a workaround:
Example:
CC prog.C -I /opt/aCC/include -I /opt/aCC/include/iostream -I /usr -I /usr/include
See “Migration Considerations Related to Preprocessing” (page 274) for more information.
-Wp
Template Options
Instantiates all members of used template classes and all needed template functions.
-pta
Invokes ld instead of nm to do simulated linking.-ptb
Uses short file names for template instantiation files.
-pth
Specifies file name extensions for template declaration files (header files).
-ptH"list"
Instantiates at link time rather than at compile time.
-ptn
Specifies an alternate location for the template repository.
-ptrpath
Splits template instantiations into separate object files.
-pts
Specifies file name extensions for template definition files.
-ptS"list"
Provides verbose information about template processing. For HP aC++, use the +inst
v option.
-ptv
Translator Mode Options
264 Migrating from HP C++ (cfront) to HP aC++