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:
- 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
- Set XERCESCROOT environment variable to extracted folder.
- Add path to xerces-c 3.1.1 headers (%XERCESCROOT%/src) as Additional include directories in your application project properties.
- Complie your application.
Linux:
- 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/ - Set XERCESCROOT environment variable to extracted sources:
$ export XERCESCROOT=/home/user/environment/xerces-c-3.1.1 - Add include directory $(XERCESCROOT)/src to CXXFLAGS flags (e.g. CXXFLAGS+= -I$(XERCESCROOT)/src in Makefile)
- Compile your application.