Apama 10.3.1 | Apama Documentation | Developing Apama Applications | Developing EPL Plug-ins | Writing EPL Plug-ins in C++ | Creating a plug-in using C++ | Compiling C++ plug-ins
 
Compiling C++ plug-ins
To compile a C++ plug-in, you need to do the following:
1. Add #include <epl_plugin.hpp> to the source file.
2. Put $APAMA_HOME/include on your compiler's include path.
3. Link the plug-in with apclient.dll (Windows) or libapclient.so (Linux).
4. Put $APAMA_HOME/lib on your compiler's linker path.
5. Enable C++11 standards mode.
6. Compile your class into a shared library .dll (Windows) or .so (Linux).
Using GCC on Linux this would look like this:
g++ --shared --std=c++0x -I$APAMA_HOME/include -L$APAMA_HOME/lib -lapclient -o libMyPlugin.so MyPlugin.cpp
You can find example makefiles (Linux) and Visual Studio project files (Windows) in the samples directory of your Apama installation.
The C++ EPL plug-in API is implemented using a C-only ABI, even though it has a C++ API. This means that there is no requirement to compile your plug-in library with a specific compiler or compiler version. However, the compiler must support the C++ 11 syntax used in the API header files. We recommend use of the compilers specified in the Supported Platforms document for the current version, which is available from the following web page: http://documentation.softwareag.com/apama/index.htm.

Copyright © 2013-2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.