
OA&M API for Linux Programming Guide — August 2005 23
5
5.Building Applications
This chapter provides general information for building applications that use the OA&M library. 
The following topics are included in this chapter: 
•Compiling and Linking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
•Variables for Compiling and Linking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
5.1 Compiling and LinkingAn application that uses the OA&M API library must include references to the OA&M API header 
files and must include the appropriate library files. This information is provided in the following 
topics:
•Include Files
•Required Libraries
5.1.1 Include Files
The following header file contains equates and #include directives that are required by all 
applications that uses the OA&M library:
dasi.h 
primary OA&M API header file
The following header files are required by applications that receive and process events from the 
OA&M event notification framework:
dlgadminconsumer.h 
defines the DlgAdminConsumer class
dlgadminmsg.h 
defines the CEventHandlerAdaptor class
dlgadminevents.h 
includes the payload format for ADMIN_CHANNEL events
dlgcclockingevents.h 
includes the payload format for CLOCK_EVENT_CHANNEL events
dlgceventbasedef.h 
provides the definitions of all event channels
dlgcprocfaultevents.h 
includes the payload format for FAULT_CHANNEL events
dlgcnetworkalarmevents.h 
includes the payload format for NETWORK_ALARM_CHANNEL events