Giorgio Zoppi created MILAGRO-23:
------------------------------------
Summary: FP_ZERO redefintion in amcl.h prevents compiling
Key: MILAGRO-23
URL: https://issues.apache.org/jira/browse/MILAGRO-23
Project: Milagro
Issue Type: Bug
Components: crypto
Reporter: Giorgio Zoppi
Attachments: Screenshot from 2019-03-31 14-54-11.png
Enviroment : gcc-7 7.3.0-27ubuntu1~18.04
Additional Libraries: Protocol Buffers. !Screenshot from 2019-03-31
14-54-11.png!
The current amcl crypto that i am using as backend, redefine FP_ZERO, that it
is by default defined in math.h in libgcc that it is included in protocol
buffers, since i am rewriting dta and rps with protobuf3 using amcl.
This leads to users to be not able to compile. The solution is quite trivial,
just put
#ifndef FP_ZERO
#define FP_ZERO 0
#endif
This will solve the issue.
Best Regards,
Giorgio
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)