HP aC++ Release Notes Version A.03.95 (5900-1789; September 2011)

HP aC++ Release Notes
New Features in Version A.03.33
Chapter 1 41
Invoking the compiler driver aCC results in the invocation of tool set components from the alternate location
above.
If the compiler is non-native and installed in a different place, the directory path can be prefixed for all
references to the compiler. You have to set the environment variables XDKROOT or SDKROOT to point to that
directory.
For example, if the compiler is installed in directory /user/foo, then the command export
SDKROOT=/user/foo prefixes all references to the compiler with /user/foo.
For information on SDK usage scenarios, see HP-UX Software Development Kit Users Guide on
http://devresource.hp.com.
TARGETROOT Environment Variable
The TARGETROOT environment variable is used as a prefix for all references to target set components and
must also be set when using a non-native development kit. Some of the target set components are header
files, archive libraries, and shared libraries.
For example, if a target tool set is installed in directory /opt/xdk-ia/ then, export
TARGETROOT=/opt/xdk-ia prefixes all references to the target 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:
/opt/langtools/lbin/ucomp /opt/xdk-ia/opt/langtools/lbin/ucomp
Default Path New Path for Compiler
/opt/aCC/bin/aCC /user/foo/opt/aCC/bin/aCC
/opt/aCC/lbin/ctcom /user/foo/opt/aCC/lbin/ctcom
/opt/langtools/lbin/ucomp /user/foo/opt/langtools/lbin/ucomp
Native Location Alternate Tool Set Location
/usr/include /opt/xdk-ia/usr/include
/opt/aCC/include* /opt/xdk-ia/opt/aCC/include*
/usr/lib /opt/xdk-ia/usr/lib
Native Location Alternate Toolset Location