Compiling a Feed Handler

Compile a custom feed handler against the Publisher API, using the shared library.

Prerequisites
Ensure that your environment is configured correctly to invoke the compiler executable. Refer to your compiler documentation for details.
  1. Set the library path environment variable to point to the publisher shared library: $RAP/PublisherAPI/lib/libpublisher.so.
    Operating system Variable
    AIX LIB_PATH
    all others LD_LIBRARY_PATH
    See the demo feed handler startup script for an example of how to set the library path.
  2. Using the appropriate settings for your compiler, compile and link the feed handler against the Publisher API.

    For an example, see the settings used to compile the demo feed handler in the supplied build script, in $RAP/DemoFeedHandler/src/compile.sh.

    If you use a custom logger or any other third party code, you must compile and link that as well.

Related tasks
Recompiling the Demo Feed Handler
Related reference
Compiler Options for the Publisher API Shared Library