Hi,
I think you will need to use the -I, -L, and -l flags when compiling using the Event API. An explanation of what these do is below:
-I : Specify your "Include" directory. This is a directory that has all header (.h) files.
-L : Specify your library directory. This is a directory that includes all library (.so) files.
-l : Specify the libraries to include.
For the event api, your .cpp file will need to inculde AxpServiceAPI.h.
#include "AxpServiceAPI.h"
To compile, you will need to specify the following arguments:
-I<SDK directory>/include -L<SDK directory>/lib -leventapi -lxerces-c
Assume your axp-sdk directory is named "/axp/sdk" and you want to name this executable program "myeventapi." So, your final commands will look something like like this:
1
2 ## Compile step
3 g++ -I/axp/sdk/include -Wall -c -omyeventapi.o eventapi.cpp
4 ## Link step
5 g++ -L/axp/sdk/lib -omyeventapi myeventapi.o -leventapi -lxerces-c -ldl
Hope this helps,
-Carl