Closed xianglingzhang closed 1 year ago
typedef mcl::FpT<> Fp;
struct tagZn;
typedef mcl::FpT<tagZn> Zn;
typedef mcl::EcT<Fp> Ec;
Ec g;
mcl::initCurve<Ec, Zn>(MCL_SECP256K1, &g);
Is this the right way to initiate the curve in mcl ? Seems like it causes the problem.
The error occurs when libmcl.a is built with MCL_USE_GMP=off (with -DMCL_USE_VINT) and and cpp is built without -DMCL_USE_VINT. Could you try to compile your code with -DMCL_USE_VINT and link it with the same libmcl.a?
It helps, thanks a lot !!!
Hi, I used "libmcl.a" as a static library to build my project in Ubuntu20.04 but I met this problem: