Note: :The proper environment variables were set in the CONFIG.SYS file during installation.
The compiling and linking procedure for the DPI API using an IBM 32-bit compiler for OS/2 follows:
icc /Sa /j- /Gm /C myprog.c
For VisualAge C++
ilink /NOFREEFORMAT /De myprog,myprog.exe,NULL,so32dll.lib tcp32dll.lib os2386 dpi20dll.lib
For C Set++
link386 /De myprog,myprog.exe,NULL,so32dll.lib tcp32dll.lib os2386 dpi20dll.lib
For more information about the compile and link options, see the User's Guide provided with your compiler.