HP-UX SNAplus2 CPI-C Programmer's Guide (June 2003)
Writing CPI-C Applications
HP-UX Considerations
Chapter 2100
Back Level Applications
New applications will use dynamic libraries in /opt/sna/lib/hpux32 or
/opt/sna/lib/hpux64 as described above. SNAplus2 release 6.2 also
includes a set of dynamic libraries to support existing applications that
have been built with previous versions of SNAplus or SNAplus2 on
PA-Risc systems. These libraries are on /opt/sna/lib or
/opt/sna/lib/pa20_64. There are multiple copies of some libraries to
support different levels of the interfaces.
Linking Motif Applications and Applications That Use
Application Scheduled Mode
Link with the following options:
-L /opt/sna/lib -lcpic -lnof -lappc -lsna
NOTE Check your Motif documentation for information on which libraries and
other options are required to link your Motif application.
Linking Multithreaded Applications
For HP-UX operating systems, linking options depend on the version of
the operating system:
• For HP-UX 10.20 (only DCE threads are supported), link with the
following options:
-L /opt/sna/lib -lcpic -lmgrdce -ldce
• For HP-UX 11.0 using DCE threads, link with the following options:
-L /opt/sna/lib -lcpic -lsna -ldce
• For HP-UX 11.0 using Kernel threads, link with the following
options:
-L /opt/sna/lib -lcpic -lsna -lpthread