HP aC++/HP C A.06.20 Programmer's Guide

Table of Contents
About This Document ..................................................................................................................23
Intended Audience.............................................................................................................23
What’s in This Document....................................................................................................23
Typographical Conventions..........................................................................................24
HP-UX Release Name and Release Identifier...............................................................25
Publishing History..............................................................................................................26
Related Documents.............................................................................................................26
HP Encourages Your Comments........................................................................................26
1 Getting Started with HP aC++...................................................................................................27
Components of the Compilation System............................................................................27
Using the aCC Command.............................................................................................28
Compiling a Simple Program........................................................................................28
Executing the Program..................................................................................................28
Debugging Programs....................................................................................................29
HP Code Advisor.....................................................................................................29
HP WDB Debugger..................................................................................................29
Accessing Online Example Source Files..................................................................29
Compiler Command Syntax and Environmental Variables...............................................29
Examples of the aCC Command...................................................................................30
Compiling and Renaming an Output File...............................................................30
Compiling and Debugging .....................................................................................30
Compiling Without Linking.....................................................................................30
Linking Object Files.................................................................................................30
Compiling, Optimizing, and Getting Verbose Information....................................30
Compiling and Creating a Shared Library..............................................................30
Files on the aCC Command Line........................................................................................31
C++ Source File (.C file).................................................................................................31
Preprocessed Source Files (.i Files) ...............................................................................31
Assembly Language Source Files (.s Files) ...................................................................31
Object Files (.o Files)......................................................................................................32
Library Files (.a and .so Files)........................................................................................32
Configuration Files (.conf Files)....................................................................................32
Environment Variables.......................................................................................................33
aCC_FULL_PATHNAMES Environment Variable.......................................................33
CXXOPTS Environment Variable..................................................................................33
CCLIBDIR Environment Variable.................................................................................34
CCROOTDIR Environment Variable............................................................................34
TMPDIR Environment Variable....................................................................................34
Floating Installation............................................................................................................35
Table of Contents 3