Avaya Logo

Previous Topic

Next Topic

Book Contents

Book Index

Step 8: Compile and execute the DIP

The DIP source program is compiled in a standard method using the C-compiler (cc) to include the voice system header files and to link the voice system library libspp.a residing in the directory /vs/lib. The voice system header files (mesg.h, VS.h, shmemtab.h) reside under /att/include, /att/msgipc, and /usr/spool/log/head. Whenever a DIP reports errors to the logger/alerter, make sure that _INSTALLABLE_APPL is defined (that is, -D _INSTALLABLE_APPL).

For example, to create the executable version of DIP stock_dip.c, enter the following:

cc -I/att/include -I/att/msgipc -I/usr/spool/log/head \
-D_INSTALLABLE_APPL -o stock_dip stock_dip.c \
-L /vs/lib -lspp -llog -lprism

Note:
This information should appear entirely on one line in the file as indicated by the backslashes (\) at end of the lines.

If your DIP is an IRAPI application, then the compilation line should be changed to the following:

cc -I/att/include -I/att/msgipc -I/usr/spool/log/head \
-D_INSTALLABLE_APPL -o stock_dip stock_dip.c -L /vs/lib \
-lirEXT -lirAPI -lspp -lTOOLS -llog -lprism

Once the executable version is created, you can start it manually from the shell command line or automatically through the inittab file.

In This Section

Auto startup via inittab

© 2006 Avaya Inc. All Rights Reserved.