HPlogo HP C++ Programmer's Guide: HP 9000 Series Workstations and Servers

Chapter 3 Compiling and Executing HP C++ Programs

» 

Technical documentation

Complete book in PDF

 » Table of Contents

 » Index

This chapter describes how to compile and execute HP C++ programs on the HP-UX operating system. It presents the CC command and its options, which allow you to access the compiling system. You can compile HP C++ programs into C, assembly, object, or executable files. Optionally, you can optimize the code.

The chapter is organized into the following topics:

  • phases of the compiling system

  • compiling with CC

  • system library and header files

  • creating and using shared libraries

  • a complete example C++ program

  • executing HP C++ programs

The chapter concludes with a programming example illustrating the concept of object-oriented program development.

© Hewlett-Packard Development Company, L.P.