HP aC++/HP C A.06.25 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++...................................................................................................29
Components of the Compilation System............................................................................29
Using the aCC Command.............................................................................................30
Compiling a Simple Program........................................................................................30
Executing the Program..................................................................................................30
Debugging Programs....................................................................................................31
HP Code Advisor.....................................................................................................31
HP WDB Debugger..................................................................................................31
Accessing Online Example Source Files..................................................................31
Compiler Command Syntax and Environmental Variables...............................................31
Examples of the aCC Command...................................................................................32
Compiling and Renaming an Output File...............................................................32
Compiling and Debugging .....................................................................................32
Compiling Without Linking.....................................................................................32
Linking Object Files.................................................................................................32
Compiling, Optimizing, and Getting Verbose Information....................................32
Compiling and Creating a Shared Library..............................................................32
Files on the aCC Command Line........................................................................................33
C++ Source File (.C file).................................................................................................33
Preprocessed Source Files (.i Files) ...............................................................................33
Assembly Language Source Files (.s Files) ...................................................................33
Object Files (.o Files)......................................................................................................34
Library Files (.a and .so Files)........................................................................................34
Configuration Files (.conf Files)....................................................................................34
Environment Variables.......................................................................................................35
aCC_FULL_PATHNAMES Environment Variable.......................................................35
aCC_MAXERR Environment Variable..........................................................................35
CXXOPTS Environment Variable..................................................................................35
CCLIBDIR Environment Variable.................................................................................36
CCROOTDIR Environment Variable............................................................................36
TMPDIR Environment Variable....................................................................................37
Table of Contents 3