HP aC++/HP C A.06.28 Programmer's Guide Integrity servers (769150-001, March 2014)

The following program uses the times function object:
// test.c
int times; //user defined variable
#include <functional>
//multiplies can be used in
int main() {}
// end of test.c
Compile this program using the following command:
aCC -D__HPACC_USING_MULTIPLIES_IN_FUNCTIONAL test.c
Depending on the existence of the conditional compilation flag, functional defines either times,
or multiplies, not both.
If you have old source that uses times in header functional and a new source that uses
multiplies, the sources cannot be mixed. Mixing the two sources constitutes a non-conforming
program, and the old and new sources may or may not link.
If your code uses the old name times, and you want to continue to use the present non-standard
times function object, you need not to do anything to compile the old source.
Tools.h++ Library
The Tools.h++ Library is a foundation class library built on the Standard C++ Library. Use its
object-oriented capabilities to simplify coding and facilitate code reuseablility.
The Rogue Wave Software Tools.h++ Class Reference describes all classes and functions in the
Tools.h++ Library. It is intended for use with Rogue Wave Standard C++ Library. It is provided as
HTML formatted files. You can view these files with an HTML browser by opening the /opt/aCC/
html/librwtool/ref.htm file.
HP aC++ Runtime Support Library
The HP aC++ runtime support library is provided as a shared library (/usr/lib/hpux32/
libCsup.so,/usr/lib/hpux32/libCsup11.so,/usr/lib/hpux64/libCsup.so and
/usr/lib/hpux64/libCsup11.so).
The library supports the following functionality:
Exception Handling
Memory Management (operators new and delete)
Start and termination of a C++ program
Runtime type identification (type_info)
Static object constructors and desctructors
See “HP aC++ Runtime Libraries and Header Files” (page 187) for more information.
IOStream Library
In this release of HP aC++, the standards based iostream capabilities of the Standard C++ Library
are still evolving. As a result, an HP C++ (cfront) compatible IOStream library is provided.
Standard Components Library Not Provided
The Standard Components Library is not provided with the HP aC++ compiler for Integrity servers.
HP recommends that you use the similar features of the Standard C++ Library in place of the
Standard Components Library.
Creating and Using Libraries 179