190 Voice API Programming Guide — June 2005
Building Applications
17.2 Compiling and Linking
The following topics discuss compiling and linking requirements:
Include Files
Required Libraries
Run-time Linking
Variables for Compiling and Linking

17.2.1 Include Files

Function prototypes and equates are defined in include files, also known as header files.
Applications that use voice library functions must contain statements for include files in this form,
where filename represents the include file name:
#include <filename.h>
The following header files must be included in application code in the order shown prior to
calling voice library functions:
srllib.h
Contains function prototypes and equates for the Standard Runtime Library (SRL). Used for
all application development.
dxxxlib.h
Contains function prototypes and equates for the voice library. Used for voice processing
applications.
Note: srllib.h must be included in code before all other Intel header files.

17.2.2 Required Libraries

Simple C language interfaces in source-code format are provided to each individual technology
DLL (such as standard runtime, voice, fax, and network interfaces). These C language interfaces
allow an application to perform run-time linking instead of compile-time linking.
Note: Compile-time linking requires that all functions called in an application be contained in the DLL
that resides on the system.
By default, the library files are located in the directory given by the INTEL_DIALOGIC_LIB
environment variable.

Linux

You must link the following shared object library files in the order shown when compiling your
voice processing application:
libdxxx.so
Main voice library file. Specify -ldxxx in makefile.