herumi / mcl

a portable and fast pairing-based cryptography library
BSD 3-Clause "New" or "Revised" License
458 stars 157 forks source link

error: macro "fp_mul" passed 4 arguments, but takes just 3 fp_mul(y, x, one, p); #100

Closed mxaddict closed 3 years ago

mxaddict commented 3 years ago
In file included from ./mcl/include/mcl/fp.hpp:29:0,
                 from ./mcl/include/mcl/fp_tower.hpp:9,
                 from ./mcl/include/mcl/bn.hpp:11,
                 from ./mcl/include/mcl/bls12_381.hpp:11,
                 from ./blsct/bulletproofs.h:25,
                 from ./primitives/transaction.h:10,
                 from ./consensus/merkle.h:11,
                 from consensus/merkle.cpp:5:
./mcl/include/mcl/op.hpp:359:22: error: macro "fp_mul" passed 4 arguments, but takes just 3
   fp_mul(y, x, one, p);

Getting this error on build when using the c++ headers

mxaddict commented 3 years ago

code on this line ./blsct/bulletproofs.h:25 is simply a header include:

#include <mcl/bls12_381.hpp>
mxaddict commented 3 years ago

Closing issue as it was a conflict with another library that we were using, not an issue with this lib itself