z/OS Communications Server: IP Programmer's Guide and Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Compiling and linking DPI Version 2.0: MVS environment

z/OS Communications Server: IP Programmer's Guide and Reference
SC27-3659-02

C programs that use DPI must:
  • Compile with the longname compiler option
  • Include snmp_dpi.h from /usr/lpp/tcpip/snmp/include
Add #include to the source code. You must inform the compiler that /usr/lpp/tcpip/snmp/include should be searched for include files. Use either a SYSLIB DD with a PATH parameter pointing to the z/OS® UNIX file system directory, or use the SEARCH compiler parameter.
Prelink DPI subagent to resolve longnames. In the prelink JCL, define three DDs pointing to each DPI object file, and then include each, such as:
DPI1  DD  PATH='/usr/lpp/tcpip/snmp/build/libdpi20/snmp_lDPI.o'
DPI2  DD  PATH='/usr/lpp/tcpip/snmp/build/libdpi20/snmp_mDPI.o'
DPI3  DD  PATH='/usr/lpp/tcpip/snmp/build/libdpi20/snmp_qDPI.o'
 
INCLUDE   DPI1
INCLUDE   DPI2
INCLUDE   DPI3

Then, link edit the prelink output as usual.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014