HP aC++ A.03.85 Release Notes

HP aC++ Release Notes
New Features in Version A.03.33
Chapter 138
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:
Environment variables like LPATH and options like -l or -L override $TARGETROOT prefixing.
Support for _declspec
This release supports __declspec(dllimport) and __declspec(dllexport) as keywords.
These keywords have the same semantics as in Microsoft Windows compilers and ease porting
of applications developed in Microsoft Windows compilers to HP-UX systems.
Support of these keywords enhances the performance of shared libraries and relieves the
usage of HP_DEFINED_EXTERNAL pragmas to hide the non-exported symbols.
Syntax and Semantics
__declspec ( extended-attribute ) declarator
extended-attribute:
dllimport
| dllexport
1. Declaring a symbol with external linkage as __declspec(dllexport) tells the compiler
that the symbol should be exported from the current load module (shared library) and
made visible to other load modules.
2. Declaring a symbol with external linkage as __declspec(dllimport) tells the compiler
that the symbol is defined in a shared library and is outside the current load module.
3. Declaring a class with either the __declspec(dllexport) or __declspec(dllimport)
keyword results in all its member functions and static data members being marked for
export or import
4. Only symbols having external linkage can be declared using these keywords.
5. It is legal to selectively specify members of a class as dllexport or dllimport but
selective specification is not allowed if the class itself is exported or imported.
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
/opt/aCC/lib /opt/xdk-ia/opt/aCC/lib