Missing macro in erasurecode_backend.h

Issue #14 resolved
Shafiul hasan created an issue

Hi all,

While importing your library into my c++ project, i used the erasure_helps.h but it throws an error due to missing macro in the following file,

/include/erasurecode/erasurecode_backend.h

I have solved this issue by just adding

#ifdef __cplusplus } #endif

Just before the last #endif .

Please have a look and and suggest me whether i am correct or not.

Comments (5)

  1. Tushar Gohad repo owner

    Thank you for the bug report and your interest in liberasurecode! We'll take care of this shortly

  2. Shafiul hasan Account Deactivated reporter

    Hi Tushar,

    Thanks for looking into my issue and commit the code this fast. There is little typo in file include/erasurecode/erasurecode_backend.h , please look at the line number 167 you commited this code extern "C" { but the real code should be like this }

    it should be the closing second bracket . Final code block should look like this,

    ifdef __cplusplus } endif

    if possible, please update the code .

    have a nice day. Thanks, Tareq

  3. Tushar Gohad repo owner

    I see. Tareq, thank you - this necessitates us adding tests with some c++ code. We'll get those in asap.

  4. Log in to comment