| |
DIGITAL C++
DIGITAL C++
Using DIGITAL C++ for Compaq's DIGITAL UNIX
Order Number:
AA-PX2BH-TE
September 1998
This manual contains information about developing DIGITAL C++ programs
on Compaq's DIGITAL UNIX systems. It describes language features
specific to DIGITAL C++ for Compaq's DIGITAL UNIX.
Revision/Update Information:
This is a revised manual, replacing AA-PX2BG-TE
Software Version:
DIGITAL C++ Version 6.1 for Compaq's DIGITAL UNIX
Digital Equipment Corporation
Maynard, Massachusetts
First Printing, March 1993 First Revision, May 1994 Second
Revision, July 1994 Third Revision, May 1995 Fourth Revision,
March 1996 Fifth Revision, October 1996 Sixth Revision, June
1997 Seventh Revision, December 1997 Eighth Revision, March
1998 Ninth Revision, September 1998
The information in this document is subject to change without notice
and should not be construed as a commitment by Digital Equipment
Corporation. Digital Equipment Corporation assumes no responsibility
for any errors that may appear in this document.
The software described in this document is furnished under a license
and may be used or copied only in accordance with the terms of such
license.
Copyright ©1993-1998
The following are trademarks of Digital Equipment Corporation:
DEC, DEC FUSE, DECthreads, Ladebug, OpenVMS, ULTRIX, VAX, VAX DOCUMENT,
VMS, the DIGITAL C++ logo, and the DIGITAL logo.
The following are third-party trademarks:
AT&T is a registered trademark of American Telephone and Telegraph
Company.
Hewlett-Packard is a registered tradmark of the Hewlett-Packard Company.
IEEE is a registered trademark of the Institute of Electrical and
Electronics Engineers, Inc.
Microsoft is a registered trademark, and Visual C++ is a trademark of
Microsoft Corporation.
OSF/1 is a registered tradmark of the Open Software Foundation, Inc.
POSIX is a registered certification mark of the Institute of Electrical
and Electronic Engineers.
UNIX is a registered trademark in the United States and other
countries, licensed exclusively through X/Open Company Ltd.
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-1996 Rogue Wave Software, Inc.
ZK6388
This document is available on CD-ROM.
Preface
This manual contains information for developing and debugging
DIGITAL C++ programs on DIGITAL UNIX systems, and includes information
on other DIGITAL UNIX features and tools that work with DIGITAL C++.
Intended Audience
This manual is intended for experienced programmers who need to develop
DIGITAL C++ programs on DIGITAL UNIX systems. Users of this manual
should have a basic understanding of the C++ language and some
familiarity with the DIGITAL UNIX operating system.
Structure of this Document
This manual is organized as follows:
- Chapter 1 shows how to create, compile, link, and run
DIGITAL C++ programs.
- Chapter 2 describes features and characteristics that are
specific to the DIGITAL C++ implementation.
- Chapter 3 describes how to modify existing C header files to be
accepted by DIGITAL C++.
- Chapter 4 contains tips for moving applications built with other
C++ implementations to DIGITAL C++.
- Chapter 5 describes how to use templates with DIGITAL C++.
- Chapter 6 describes how to use precompiled headers with
DIGITAL C++.
- Chapter 7 describes the DIGITAL C++ implementation of the C++
Standard Library.
- Chapter 8 explains how to use C++ exception handling.
- Chapter 9 describes how to use the Ladebug debugger.
- The cxx(1) reference page describes command
line options.
Associated Documents
The following documents contain information associated with topics in
this manual:
- Stroustrup, Bjarne. The C++ Programming Language, 3rd 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.
- DEC C++ Class Library Reference Manual
This manual describes the class library packages
supplied with DIGITAL C++.
- DIGITAL C++ Installation Guide for Compaq's DIGITAL UNIX
This document supplies the information necessary
to install DIGITAL C++.
- The AT&T C++ Language System, Release 2.0, Library
Manual
This document describes the AT&T class library
package.
Related Documents
The following documents are not included in the DIGITAL C++
documentation set. Refer to them for additional information on the C++
programming language, DEC C, or DIGITAL UNIX programming.
- Stroustrup, Bjarne and Margaret Ellis. The Annotated C++ Reference Manual. Reading,
Massachusetts: Addison-Wesley, 1990.
This text contains the current
language definition of C++.
- 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.
- DIGITAL UNIX Programmer's Guide
This guide describes
the programming environment on the DIGITAL UNIX operating system,
emphasizing the C programming language.
- DEC C Language Reference Manual
Provides a complete
technical description of the C language as specified by the ANSI X3J11
committee. This manual also fully describes all extensions to this
standard implemented in DEC C.
- ULTRIX to DIGITAL UNIX Migration Guide
Describes how
to migrate from an ULTRIX system to a DIGITAL UNIX system. This book
includes information on porting applications from ULTRIX to DIGITAL
UNIX systems.
Conventions Used in this Manual
Table 1 lists the conventions used in this manual.
Table 1 Conventions Used in this Manual
| Convention |
Meaning |
|
%
|
A percent sign (%) is the default user prompt.
|
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 DIGITAL 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
and file-name extensions.
|
|
italic
|
Italic type denotes the names of variables that appear as parameters or
in arguments to functions, and also denotes book titles.
|
|
boldface
|
Boldface type in text indicates the first instance of terms defined in
text.
|
UPPERCASE
lowercase
|
The DIGITAL UNIX operating system distinquishes between uppercase and
lowercase characters. Literal strings that appear in text, examples,
syntax descriptions, and function definitions must be entered exactly
as shown.
|
|
cxx
(1)
|
Cross-references to reference pages include the appropriate section
number in parentheses.
|
Reader's Comments
You may send comments or suggestions regarding this manual, or any
DIGITAL C++ document, by electronic mail to the following Internet
address:
-
cxx_docs@bookie.enet.dec.com
If you have access to a FAX machine, you may send your comments or
suggestions to:
-
DIGITAL C++ Documentation, ZKO2-3/K35
603-884-0120
Product Support
Support for DIGITAL C and C++ products is provided worldwide by DIGITAL
MultivendorCustomer Services. To request information on support
services in the United States and Canada, call toll-free
-
1-800-DIGITAL (800-344-4825)
For information on support in other countries, contact your local
customer services organization.
When reporting problems to DIGITAL, 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
|