HP WBEM Services Software Developer's Kit for HP-UX Provider and Client Developer's Guide A.01

Provider Implementation
Building Providers
Chapter 476
-I/opt/wbem/include
Instructs the compiler where to look for header files that are needed
to compile providers
-DPEGASUS_PLATFORM_HPUX_PARISC_ACC (PA)
-DPEGASUS_PLATFORM_HPUX_IA64_ACC (IA)
Defines compile-time macro needed to control conditional
compilation on HP-UX
The shared library should be linked with the aCC command using the
following options (shared libraries could also be linked with the ld
command, but using aCC automatically links the necessary C/C++
standard run-time libraries):
-b
Generates a shared library, rather than an executable image
-Wl,+hlib<name>.<library_suffix>
Passes the +h flag to the linker, which causes the specified string to
be inserted in the shared library as its internal name (please see the
man page for the ld command). This feature, while not absolutely
required, allows management of different versions of a shared
library, in that programs can be built to run with versions at or later
than a specified value.
The <
name
> string should match the Location property value of the
PG_ProviderModule registration object. The extension <library
suffix> must be the appropriate shared library suffix for the
platform. Use .sl for PA, or .so for IA; for example:
-Wl,+hlibMyProviderModule.sl
or
-Wl,+hlibMyProviderModule.so
The same string should be specified as the output file to be generated
by the linker with the -o flag:
-olibMyProviderModule.0
-L/opt/wbem/lib
Instructs the linker to look in /opt/wbem/lib for the following
shared libraries that will be dynamically accessed during execution
-lpegcommon
-lpegprovider