search    
Hewlett-Packard
HP aC++/HP C Online Programmer's Guide
Welcome to the HP aC++/HP C Online Programmer's Guide. This document is organized into the following sections:
Getting Started
The HP aC++ compiler supports the ISO/IEC 14882 Standard for the C++ Programming Language (the international standard for C++). The HP ANSI C compiler supports ANSI programming language C standard ISO 9899:1990. This section discusses the major components of the compiling system, compiling, executing and debugging a simple program. more»
Command Syntax and Environment Variables
This section introduces you to the the HP aC++ compiler command syntax and environment variables. It gives an overview of the command syntax, examples of the aCC and cc commands and files you can use on the command line. This section also discusses Environment Variables and Floating Installation. more»
Command-Line Options
You can specify command-line options to the aCC and cc commands. They allow you to override the default actions of the compiler. Each option begins with either a - or a + sign. Any number of options can be interspersed anywhere in the aCC and cc commands and they are typically separated by blanks. more»
Pragma Directives
Use a #pragma directive to control the actions of the compiler in a particular portion of a translation unit without affecting the translation unit as a whole. more»
Preprocessing Directives
Preprocessing directives function as compiler control lines. They allow you to direct the compiler to perform certain actions on the source file. more»
Creating and Using Precompiled Headers
You can reduce compilation time by precompiling common include (header) files. There are two mechanisms for precompiling headers header caching and manual precompiled headers. more»
Using HP aC++ Templates
This section overviews template processing and describes instantiation coding methods available to you. more»
Exception Handling
Exception handling provides a standard mechanism for coding responses to runtime errors or exceptions. Exception handling is on by default. To turn it off, you must use the +noeh option. more»
Using Threads
The HP aC++ run-time environment supports multi-threaded applications. This section discusses HP aC++ libraries that are thread-safe with given limitations. more»
Parallel Programming Using OpenMP
OpenMP is an industry-standard parallel programming model that implements a fork-join model of parallel execution. The HP C++ OpenMP pragmas are based on the OpenMP Standard for C/C++, version 2.5. more»
Standardizing Your Code
HP aC++ largely conforms to the ISO/IEC 14882 Standard for the C++ Programming Language. This section discusses how you can standardize your code. more»
Optimizing Your Code
HP aC++/HP C provides options to the aCC and cc commands and pragmas to control optimization. This section introduces the basic concepts of optimizing your HP aC++ code for improved efficiency. more»
LEX and YACC
lex and yacc are bundled with the HP aC++/HP C product. This section lists the HP specific features of lex and yacc. more»
Creating and Using Libraries
This section gives an overview of libraries provided with HP aC++ and how you can create and use your own libraries. more»
Mixing HP aC++ with Other Languages
This section provides guidelines for linking HP aC++ modules with modules written in HP C and HP FORTRAN 90 on HP 9000 Series 700/800 systems. more»
Migrating from HP C++ (cfront) to HP aC++
This section discusses differences in syntax and functionality that you need to consider when migrating from HP C++ (cfront) to HP aC++. more»
Distributing Your HP aC++ Products
Distribute your products in such a way that your customer does not need to use the HP aC++ compiler or driver. That is, distribute only executables and shared libraries. Be sure your customer has read this distribution information. more»
Glossary
The glossary contains definitions of terms listed alphabetically. more»
Help

The compiler help is orgnized into topic files. Each topic describing a different area of functionality. Some features have descriptions in several different topic files and in several locations within a given topic file.

The Help search feature allows you to locate feature descriptions in the various help topic files. It is most useful when you are not sure under which topic the feature will be discussed. The Help search searches across all of the help files. Once you have found the topics where the feature is discussed you can select from the search results to display a particular discussion or use the search feature of your browser to step between the instances of the search string within a given topic file.

Enter a text string in the search field at the top of any help page and click on the Search (>>) button. If the text string is found in any of the help topics, a list of "hits" or results for the search string will be displayed. The first line of a result is the topic file. The second line of a result is the major and/or minor heading containing the search string.

Clicking on the first line of a result will display the description where the text string was found. You can return to the results screen using the browser back arrow to select the next result or use the search feature of the browser to locate individual instances of the search string within the current topic file.

Examples:
    Edit, Find, search string, Find Next
    Edit, Find in This Page, , Find Next.
Search Strings

Search string data has the following features:

  • one or more terms separated by a space
  • quoted phrases
  • "-" (minus) preceeding terms to be excluded

You can enter one or more terms in the search field. Individual terms should be separated by a space " ". Results will be returned for each occurrence of any one of the terms.

Example: point floating processing

Placing double quotes around phrases will cause a search for the exact phrase and not the individual terms within the phrase.

Example: "floating point processing"

Entering a term immediately preceeded by a minus "-" sign will cause the search to exclude "hits" containing the the term preceeded by the "-". You can search for terms having a minus "-" sign by enclosing the term in double quotes ( "-w"). The following example searches for the term "libraries" that occurs in topics that do not discuss "floating point".

Example: -floating libraries


 Rogue Wave Library Manuals
The following library is std namespace enabled and includes the standard iostream library. It is not compatible with the older Rogue Wave libraries listed below.

Rogue Wave Standard C++ Library Version 2.2.1

The following library is std namespace enabled and is compatible with Rogue Wave Standard C++ Library Version 2.2.1.

The following two libraries are not std namespace enabled. They are not compatible with the newer Rogue Wave library listed above.


NOTE: The Rogue Wave documentation links in this section are to files that are installed with the compiler. If you are accessing this guide from the World Wide Web URL, http://docs.hp.com, the links in this section will not work.
Product Information

Product Number
B9007AA

Version
A.06.15

September 2007
 

Resources

Release Notes

Information Map
more information
about this guide
and about C++

Choice of
C++ Runtime

on HP-UX
(-AA Vs -AP
)

Web Resources

www.hp.com/go/cpp/

HP aC++ Transition
Guide

HP aC++ Compiler
Technical Overview

HP Caliper Performance Analyzer

HP Code Advisor

 

 

Search

You can also search
for information using
keywords. Enter a
keyword in the search
box given at the top
of each page to search.