Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP WBEM Services Software Developer's Kit for HP-UX Provider and Client Developer's Guide > Chapter 5 Client Implementation

Building Clients

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

Clients should be compiled and linked with the aCC C++ compiler. The make utility can be used to control this. The following example Makefile illustrates the necessary compilation and link flags for building a client.


LIBRARIES = -L/opt/wbem/lib -lpegcommon -lpegclient
INCLUDE = -I/opt/wbem/include
ACC_OPTIONS = $(PLATFORM_ACC_OPTIONS) $(INCLUDE)

OUTPUT = $(PROGRAM)
CURRENTPATH = $(PWD)

OBJECTS = $(SOURCES:.cpp=.o)
.cpp.o:
     aCC -c -o $@ $(ACC_OPTIONS) $*.cpp

$(OUTPUT): $(OBJECTS)
     aCC $(ACC_OPTIONS) -O$@ $(OBJECTS) -lrt \
     $(LIBRARIES)

In this example, the setting for PLATFORM_ACC_OPTIONS depends on the platform:

  • For PA, use:

    +DAportable -AP -mt -DPEGASUS_PLATFORM_HPUX_PARISC_ACC

  • For IA, use:

    +DD64 -AA -mt -DPEGASUS_PLATFORM_HPUX_IA64_ACC
    -DHPUX_IA64_NATIVE_COMPILER

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2000-2003 Hewlett-Packard Development Company, L.P.