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

Configuration 423
Sample Applications
-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 +DD32 -o simpleTlsSession ./
simpleTlsSession.o -L/usr/lib/hpux32/sip/TLS -
lrvsip -lrvads
-lrvcommon -L/usr/lib/hpux32 -lnsl -ldl -lrt -
lpthread -lssl -lcrypto
where:
-L/usr/lib/hpux32/sip/TLS Sets the search path
for the SIP libraries.
Note Notice the change in the -L/usr/lib/hpux64/sip/ directory to -L/
usr/lib/hpux32/sip/TLS/ compared to Example 1.
-lcrypto
-ssl
Includes the Openssl libraries required
for the TLS functionality.
-lrvsip
-lrvads
-lrvcommon
Specifies the SIP Stack libraries to be linked.
5. Run the "file" command on the simpleTlsSession
executable:
# file simpleTlsSession
The following output displays:
simpleTlsSession: ELF-32 executable
object file - IA64