HP-UX C SIP Stack Programmer's Guide (Novembery 2007)

Configuration 421
Sample Applications
#define RV_TLS_TYPE RV_TLS_NONE
2.
Set the architecture type RV_ARCH_BITS in the /usr/
include/sip/rvbuildconfig.h
file to
RV_ARCH_BITS_64, as follows:
#define RV_ARCH_BITS RV_ARCH_BITS_64
3.
Run the following command to compile the sample
application:
# cc +DD64 -I/usr/include/sip -I/usr/include/
sip/sip -I/usr/include/sip/ads -I/usr/include/
sip/common -c simpleSession.c
where:
+DD64 Instructs the compiler to generate
the code for a 64-bit platform.
-I/usr/include/sip
-I/usr/include/sip/sip
-I/usr/include/sip/ads
-I/usr/include/sip/common
Sets the search path for
header files.
4. Run the following command to link the sample application:
# cc +DD64 -o simpleSession ./simpleSession.o
-L/usr/lib/hpux64/sip -lrvsip -lrvads -
lrvcommon
-L/usr/lib/hpux64 -lnsl -ldl -lrt -lpthread
where:
-L/usr/lib/hpux64/sip Sets the search path for the
SIP libraries.
-lrvsip
-lrvads
-lrvcommon
Specifies the libraries to be
linked.