Search code examples
c++quickfixfix-protocol

OO1B character when running example code of quickfix


I am trying to use an example code of the Quickfix library. I compiled the code with:

g++ -o main tradeclient.cpp Application.cpp -std=c++11 -fexceptions -finline-functions -lquickfix -lpthread -lxml2 -lz

it compiles perfectly!

When I run the program with the corresponding config settings that the broker provides for the FIX protocol, I am unable to get a succesful LOGON. Instead it logouts, and the FIX message I try sending is printed by the program with a bunch of OO1B characters. Here's a screenshot of the output:

screenshot

What could be the problem? I have downloaded all the dependencies to compile and run the program (all the libraries to compile the program as well as glibc libxml2).

This is the example code I am compiling:

https://github.com/quickfix/quickfix/tree/master/examples/tradeclient


Solution

  • That is just SOH, it separates each field of FIX message.

    See link SOH