Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

3.1 HP-UX Environment Identification

This implementation of Threads.h++ supports either HP-UX version B.10.20 or HP-UX version B.11.00. Threads.h++ relies on different thread APIs and compiler versions under each of these versions (see below).

3.1.1 HP-UX Operating System Identification

Threads.h++ will assume that it is being built for an HP-UX environment if it finds that the __hpux and hpux macros are defined, and the _HPUX macro is not defined.

Threads.h++ uses the HP DCE (POSIX 1003.1c Draft 4) API under HP-UX version B.10.20 and supports use of the HP DCE API under HP-UX version B.11.00. DCE support is available for 32-bit mode only, while POSIX support is available for both 32-bit and 64-bit modes under HP-UX vB.11.00.

Threads.h++ supports only the HP A.01.21 aCC C++ compiler under HP-UX B.10.20, and only supports the HP A.03.13 aCC C++ compiler under HP-UX B.11.00 (in both the 32 and 64-bit modes).

Threads.h++ uses RW_THR_OS_VERSION_HPUX macro to distinguish between versions of the operating system. This macro is automatically defined by the Software Parts Manager when building the library and its examples, but you must provide your own definition if using the library from other build environments. This is accomplished by defining the macro on the compiler command-line; give the macro a hexadecimal value of 0x1020 for version B.10.20 or 0x1100 for version B.11.00.

3.1.2 HP C++ Compiler Identification

The Threads.h++ library has been certified using version A.01.21 under HP-UX B.10.20, and A.03.13 under HP-UX B.11.00.

To use a newer version of the compiler, you may need to modify the defs.h file to define the attributes of the new version. For Software Parts Manager installations, the defs.h file is located at:

rw_root\workspaces\OS+ver\COMPILER+ver\buildtype\rw\thr\defs.h

If support for additional compiler versions is added, you must also define the RW_THR_COMPILER_VERSION macro on the compiler command-line, giving the macro a value that identifies the compiler version you intend to use. You will only need to take these steps if you have added specific configuration changes for a new compiler version.

Threads.h++ uses the macro RW_THR_COMPILER_VERSION_HP_ACC to recognize the compiler. This macro is automatically defined by the Software Parts Manager when building the library and its examples, but it may be necessary to provide your own definition if using the library from other build environments. This is accomplished by defining the appropriate macro on the compiler command-line; define the RW_THR_COMPILER_VERSION_HP_ACC macro with value of 0x00012100 for the aCC version A.01.21 compiler under HP-UX 10.20, or 0x00031300 for the aCC version A.03.13 compiler under HP-UX 11.00.


Previous fileTop of DocumentContentsIndexNext file

©Copyright 2000, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.