HP aC++/HP C Programmer's Guide (B3901-90036; A.06.26; September 2011)
Table 13 Obsolete Command-Line Options (continued)
DescriptionOption
Exception Handling Option
Enables exception handling in HP C++.+eh
In HP aC++, exception handling is enabled by default. To disable exception handling
off, compile with the +noeh option.
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
-depth
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.
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.
-Wp
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 260) for more information.
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
250 Migrating from HP C++ (cfront) to HP aC++