HP aC++/HP C A.06.20 Programmer's Guide
HP aC++ Runtime Support Library
/usr/lib/hpux##/libCsup.so
/usr/lib/hpux##/libstd.so and libstd_v2.so
/usr/lib/hpux##/libstd_v2.so and librwtool_v2.so
/usr/lib/hpux##/libstream.so
Libraries in /usr/include/hpux##
(where ## is 32 or 64 provided as part of the HP-UX core system)
Standard C++ Library
/usr/lib/hpux32/libstream.so (32-bit shared version)
/usr/lib/hpux32/libstream.a (32-bit archive version)
/usr/lib/hpux64/libstream.so (64-bit shared version)
/usr/lib/hpux64/libstream.a (64-bit archive version)
Header files for these libraries are located at /opt/aCC/include/.
Using the aCC Command
To invoke the HP aC++ compiling system, use the aCC command at the shell prompt.
TheaCC command invokes a driver program that runs the compiling system according
to the filenames and command line options that you specify.
Compiling a Simple Program
The best way to get started with HP aC++ is to write, compile, and execute a simple
program, as shown in the following example:
#include <iostream.h>
int main()
{
int x,y;
cout << “Enter an integer: “;
cin >> x;
y = x * 2;
cout << “\n” << y <<“ is twice “ << x <<“.\n”;
}
If this program is in the file getting_started.C, compiling and linking the program
with the aCC command produces an executable file named a.out:
$ aCC getting_started.C
Executing the Program
To run this executable file, just enter the name of the file. The following summarizes
this process with the file getting_started.C:
$ a.out
Enter an integer: 7
14 is twice 7.
28 Getting Started with HP aC++