Hi, I built executable file "Cons100" on Linux and ran it. The log file said "error reading configuration file [EmaConfig.xml]; file is empty". I see this file under RTSDK-2.0.1.L2.linux.rrg/Cpp-C/Ema/ directory by default. Is this the right place to hold this file?
Cons100 reads the EmaConfig.xml file from the current working directory. Therefore, to use the configuration file, you need to copy the configuration file to the working directory of Cons100.
However, you can override it by specifying the path when creating the OmmConsumerConfig instance.
OmmConsumer consumer( OmmConsumerConfig("/opt/refinitiv").host( "localhost:14002" ).username( "user" ) );
With the above code, EMA will load the EmaConfig.xml from the /opt/refinitiv directory.