real-logic / simple-binary-encoding

Simple Binary Encoding (SBE) - High Performance Message Codec
Apache License 2.0
3.08k stars 519 forks source link

C++ compilation failed #119

Closed aasaimuthu closed 10 years ago

aasaimuthu commented 10 years ago

Hi, We are trying to compile in the c++, unix environment using the steps provided in the FAQ.

however we are getting below error when we compile these below two steps $ ant cpp Run the C++98 examples $ ant examples:cpp

Do we have to compile these two steps $ ant cpp $ ant examples:cpp

without these steps is there any way decode messges? else provide the steps sample code to decode the message.

Compile Error

The following steps in the [javac] /export/home/amuthu/decoder/simple-binary-encoding-master/main/java/uk/co/real_logic/sbe/generation/cpp98/Cpp98Generator.java:425: expected [javac] final Token token,

mjpt777 commented 10 years ago

I cannot recreate the issue you are seeing. I'm using GCC version:

gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1

aasaimuthu commented 10 years ago

Hi, I am managed to compile now using the latest version of Java compiler. I am trying to use this for CME decoder, I got the CME decoder XML template file, how can I use this XML file to generate the c++ classes for message decoding, please provide to steps to proceed further.

Thanks & regards, Aasai

On 16 Apr, 2014, at 6:05 pm, Martin Thompson notifications@github.com wrote:

I cannot recreate the issue you are seeing. I'm using GCC version:

gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1

— Reply to this email directly or view it on GitHub.

mjpt777 commented 10 years ago

SBE requires the Java 7 compiler. It does not requires Java 8 which is the latest. Java 7 is the oldest supported version of Java by Oracle.

mjpt777 commented 10 years ago

You should contact the CME for official support for their products.

We support the SBE reference implementation which is independent of the CME. Examples, of using SBE can be found in the examples directory with additional documentation on the Wiki.