Skip to Main Content United States    
PRODUCTS SUPPORT SOLUTIONS SERVICES
COMPAQ SOFTWARE
Compaq C++

Compaq C++

Using Compaq C++ for OpenVMS Alpha

Order Number: AA-RPM8B-TE


February 2002

This manual contains information about developing Compaq C++ programs on OpenVMS Alpha systems and describes related language features.

Revision/Update Information: This is a revised manual, replacing AA-RPM8A-TE

Operating System and Version: OpenVMS Alpha Version 6.2 or higher

Software Version: Compaq C++ Version 6.5 for OpenVMS Alpha

Compaq Information Technologies Group, L.P.
Houston, Texas


First Printing, September 1992
Ninth Revision, February 2002

© 2002 Compaq Information Technologies Group, L.P.

COMPAQ, the Compaq logo, Alpha, OpenVMS, VAX, VMS, Ladebug, and Tru64 are trademarks of Compaq Information Technologies Group, L. P. in the U.S. and/or other countries. Microsoft and Visual C++ are trademarks of Microsoft Corporation in the U.S. and/or other countries. UNIX is a trademark of The Open Group in the U.S. and/or other countries. All other product names mentioned herein may be trademarks of their respective companies.

Portions of the ANSI C++ Standard Library have been implemented using source licensed from and copyrighted by Rogue Wave Software, Inc.

Information pertaining to the C++ Standard Library has been edited and reprinted with permission of Rogue Wave Software, Inc. All rights reserved.

Portions copyright 1994-2002 Rogue Wave Software, Inc.

Confidential computer software. Valid license from Compaq required for possession, use or copying. Consistent with FAR 12.211 and 12.212, Commercial Computer Software, Computer Software Documentation, and Technical Data for Commercial Items are licensed to the U.S. Government under vendor's standard commercial license.

Compaq shall not be liable for technical or editorial errors or omissions contained herein. The information is provided "as is" without warranty of any kind and is subject to change without notice. The warranties for Compaq products are set forth in the express limited warranty statements accompanying such products. Nothing herein should be construed as constituting an additional warranty.

This document is available on CD-ROM. This document was prepared using DECdocument, Version 3.3-1e.

Contents Index


Preface

This manual contains information about developing and debugging Compaq C++ programs on OpenVMS Alpha systems, and includes information on other OpenVMS features and tools that work with the compiler.

Intended Audience

This manual is intended for experienced programmers who need to develop Compaq C++ programs on OpenVMS Alpha systems. Users of this manual should have a basic understanding of the C++ language and some familiarity with the Digital Command Language (DCL).

Structure of this Document

This manual is organized as follows:

  • Chapter 1 shows how to create, compile, link, and run Compaq C++ programs.
  • Chapter 2 describes features and characteristics that are specific to the Compaq C++ implementation.
  • Chapter 3 describes guidelines and procedures for customizing your language environment.
  • Chapter 4 describes how to make code used with other C++ implementations acceptable to the Compaq C++ compiler.
  • Chapter 5 describes how to use templates with Compaq C++.
  • Chapter 6 explains how to use C++ exception handling.
  • Chapter 7 describes the Compaq C++ implementation of the C++ Standard Library.
  • Chapter 8 explains how to use the OpenVMS Debugger with Compaq C++.
  • Chapter 9 explains how to use 64-bit address space.
  • Appendix A describes compiler command qualifiers.
  • Appendix B provides information on using programming tools with Compaq C++.
  • Appendix C describes built-in functions.
  • Appendix D describes Class Library restrictions.

Associated Documents

The following documents contain information associated with topics in this manual:

  • Stroustrup, Bjarne. The C++ Programming Language, 3nd Edition. Reading, Massachusetts: Addison-Wesley, 1997.
    This text combines a user guide and language reference manual. Where appropriate, section numbers shown in parentheses (for example, §r.2.3) refer to relevant portions of The C++ Programming Language, 3nd Edition.
  • Compaq C++ Class Library Reference Manual
    This manual describes a library of Compaq C++ classes.
  • Compaq C++ Installation Guide for OpenVMS Alpha
    This document supplies the information necessary to install Compaq C++ on OpenVMS Alpha systems.
  • Compaq C Run-Time Library Reference Manual for OpenVMS Systems
    This library manual provides information, useful to Compaq C++ users, on the OpenVMS Run-Time Library (RTL) for C functions and macros, which include the ANSI C standard library. This manual also contains information about porting programs to and from other operating systems.

The C++ Programming Language, 3nd Edition and the STL Tutorial and Reference Guide are available only in printed form. Online copies are not available.

Related Documents

  • Stroustrup, Bjarne. The C++ Programming Language, 3nd Edition. Reading, Massachusetts: Addison-Wesley, 1997.
    Provides an exhaustive introduction to the C++ programming language, including sophisticated language features. This book also includes the text but not the annotations of The Annotated C++ Reference Manual.
  • Carroll, Martin D. and Margaret E. Ellis. Designing and Coding Reusable C++. Reading, Massachusetts: Addison-Wesley, 1995.
    This text provides practical information for designing and implementing C++ programs.
  • Myers, Scott. Effective C++: 50 Specific Ways to Improve Your Programs and Designs, 3rd edition. Reading, Massachusetts: Addison-Wesley, 1997.
  • Myers, Scott. More Effective C++: 35 New Ways to Improve Your Programs and Designs. Reading, Massachusetts: Addison-Wesley, 1995.
    These texts provide practical information for designing and implementing C++ programs.
  • International Standard ISO/IEC 14882
    Defines the C++ International Standard. The document is available for downloading at the ANSI Electronic Store (start at
    The printed version is also available for purchase from the same web site. Choose "Catalogs/Standards Information", then "ANSI-ISO-IEC Online Catalog", then search for "14882".

Conventions Used in this Manual

Table 1 lists the conventions used in this manual.

Table 1 Conventions Used in this Manual
Convention Meaning
class complex {
.
.
.
};
A vertical ellipsis indicates that some intervening program code or output is not shown. Only the more pertinent material is shown in the example.
,... A horizontal ellipsis in a syntax description indicates that you can enter additional parameters, options, or values. A comma preceding the ellipsis indicates that successive items must be separated by commas.
The generic class...
The get() function...
Monospaced type denotes the names of Compaq C++ language elements, and also the names of classes, members, and nonmembers. Monospaced type is also used in text to reference code elements displayed in examples.
italic Italic type denotes the names of variables that appear as parameters or in arguments to functions, and also denotes file-name extensions and book titles.
boldface Boldface type in text indicates the first instance of terms defined in text.

Reader's Comments

You may send comments or suggestions regarding this manual, or any Compaq C++ document, by electronic mail to the following Internet address:

compaq_cxx@compaq.com .

Product Support

Customers with support contracts should seek support for problems through local customer support centers.

Customers who do not have support contracts are encouraged to mail problem reports to compaq_cxx.bugs@compaq.com . Although these reports will certainly be used as a source of input for fixing problems for new releases, we cannot give the reports individual attention. We can take remedial action only on a best-effort basis.

If you have questions, suggestions, or comments, please send mail to compaq_cxx@compaq.com .

When reporting problems to Compaq, please provide the following information:

  • Name and version of compiler (from a listing file)
  • Name and version of operating system
  • Smallest possible complete source and commands needed to reproduce the problem
  • An example of the incorrect results and the desired results


Next Contents Index
Buy Online or Call 1.800.888.0220      privacy statement and legal notices 
STORES CONTACT US SEARCH PRODUCTS SOLUTIONS OPTIONS DEVELOPERS