How to use xerces-c with FIX Antenna C++

Some FIX Antenna C++ API functions require Xerces-c headers. To compile your application with xerces-depended code follow these instructions:

Windows:

  1. Download and extract xerces-c 3.1.1 sources from offical site: https://archive.apache.org/dist/xerces/c/3/sources/xerces-c-3.1.1.zip
  2. Set XERCESCROOT environment variable to extracted folder.
  3. Add path to xerces-c 3.1.1 headers (%XERCESCROOT%/src) as Additional include directories in your application project properties.
  4. Complie your application.

Linux:

  1. Download and extract (e.g. to /home/user/environment/) xerces-c 3.1.1 sources:
    $ wget https://archive.apache.org/dist/xerces/c/3/sources/xerces-c-3.1.1.tar.gz
    $ tar xf xerces-c-3.1.1.tar.gz -C /home/user/environment/
  2. Set XERCESCROOT environment variable to extracted sources:
    $ export XERCESCROOT=/home/user/environment/xerces-c-3.1.1
  3. Add include directory $(XERCESCROOT)/src to CXXFLAGS flags (e.g. CXXFLAGS+= -I$(XERCESCROOT)/src in Makefile)
  4. Compile your application.