Missing macro in erasurecode_backend.h
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)
-
repo owner -
repo owner - changed status to resolved
Add missing #ifdef __cplusplus closure, Fixes
#14→ <<cset 7e3b245b774d>>
-
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
-
repo owner I see. Tareq, thank you - this necessitates us adding tests with some c++ code. We'll get those in asap.
-
repo owner Add missing #ifdef __cplusplus closure, Fixes
#14(take 2)→ <<cset e46c434e3656>>
- Log in to comment
Thank you for the bug report and your interest in liberasurecode! We'll take care of this shortly