HP C A.06.05 Reference Manual
Compiling and Running HP C Programs
Compiling HP C Programs
Chapter 9224
directory is the name of an HP-UX directory where you want HP C to put temporary files
during compilation.
aCC_MAXERR Environment Variable
This release of HP C compiler provides support to specify the maximum number of errors
emitted before the compilation aborts. In the earlier versions, the compiler stopped, if it
recognized more than 99 errors while compiling. With this release, the maximum number of
errors that the compiler emits can be tuned as required by setting the aCC_MAXERR
environment variable.
The syntax for aCC_MAXERR in C shell notation is:
export aCC_MAXERR=
errors
where
errors
are the maximum number of errors set.
SDK/XDK
SDK/XDK, helps you in selecting the components, headerfiles, and libraries installed in
alternate locations. To enable this support in your compiler, you need to set either one or both
of the following environment variables:
• SDKROOT
• TARGETROOT
Setting SDKROOT Environment Variable
The SDKROOT environment variable is used as a prefix for all references to tool set
components. This environment variables is set by the user while using a non-native
development kit or toolset installed at an alternative location. Some of the toolset components
are compiler drivers, compiler applications, preprocessor, linker, and object file tools. If the HP
C compiler has its tool set installed in /opt/xdk-ia/directory then the command:
export SDKROOT=/opt/xdk-ia
will prefix all references to the HP C compiler tool set components with /opt/xdk-ia. The
following details the default tool set components location as specified in the above command
and its earlier location before the execution of the command:
Table 9-2 Native and Alternate Toolset Location
Native Location Alternate Toolset Location
/opt/ansic/bin/cc /opt/xdk-ia/opt/ansic/bin/cc