widecash
Newbie
Offline
Activity: 58
Merit: 0
|
|
May 21, 2018, 05:00:40 PM |
|
Final stage to compile it. it has error below.
Any solution ?
src/bignum.h:531:61: error: cannot convert 'const CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_is_prime(const BIGNUM*, int, void (*)(int, int, void*), BN_CTX*, void*)' int ret = BN_is_prime(this, checks, NULL, pctx, NULL); ^ src/bignum.h: In member function 'bool CBigNum::isOne() const': src/bignum.h:539:30: error: cannot convert 'const CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_is_one(const BIGNUM*)' return BN_is_one(this); ^ src/bignum.h: In member function 'bool CBigNum::operator!() const': src/bignum.h:545:31: error: cannot convert 'const CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_is_zero(const BIGNUM*)' return BN_is_zero(this); ^ src/bignum.h: In member function 'CBigNum& CBigNum::operator+=(const CBigNum&)': src/bignum.h:550:35: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_add(BIGNUM*, const BIGNUM*, const BIGNUM*)' if (!BN_add(this, this, &b)) ^ src/bignum.h: In member function 'CBigNum& CBigNum::operator*=(const CBigNum&)': src/bignum.h:564:41: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_mul(BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)' if (!BN_mul(this, this, &b, pctx)) ^ src/bignum.h: In member function 'CBigNum& CBigNum::operator<<=(unsigned int)': src/bignum.h:583:41: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_lshift(BIGNUM*, const BIGNUM*, int)' if (!BN_lshift(this, this, shift)) ^ src/bignum.h: In member function 'CBigNum& CBigNum::operator>>=(unsigned int)': src/bignum.h:594:28: error: cannot convert 'CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_cmp(const BIGNUM*, const BIGNUM*)' if (BN_cmp(&a, this) > 0) ^ src/bignum.h:600:41: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_rshift(BIGNUM*, const BIGNUM*, int)' if (!BN_rshift(this, this, shift)) ^ src/bignum.h: In member function 'CBigNum& CBigNum::operator++()': src/bignum.h:609:47: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_add(BIGNUM*, const BIGNUM*, const BIGNUM*)' if (!BN_add(this, this, BN_value_one())) ^ src/bignum.h: In member function 'CBigNum& CBigNum::operator--()': src/bignum.h:626:45: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_sub(BIGNUM*, const BIGNUM*, const BIGNUM*)' if (!BN_sub(&r, this, BN_value_one())) ^ src/bignum.h: In function 'const CBigNum operator+(const CBigNum&, const CBigNum&)': src/bignum.h:653:27: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_add(BIGNUM*, const BIGNUM*, const BIGNUM*)' if (!BN_add(&r, &a, &b)) ^ src/bignum.h: In function 'const CBigNum operator-(const CBigNum&, const CBigNum&)': src/bignum.h:661:27: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_sub(BIGNUM*, const BIGNUM*, const BIGNUM*)' if (!BN_sub(&r, &a, &b)) ^ src/bignum.h: In function 'const CBigNum operator-(const CBigNum&)': src/bignum.h:669:43: error: cannot convert 'CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_is_negative(const BIGNUM*)' BN_set_negative(&r, !BN_is_negative(&r)); ^ src/bignum.h: In function 'const CBigNum operator*(const CBigNum&, const CBigNum&)': src/bignum.h:677:33: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_mul(BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)' if (!BN_mul(&r, &a, &b, pctx)) ^ src/bignum.h: In function 'const CBigNum operator/(const CBigNum&, const CBigNum&)': src/bignum.h:686:39: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_div(BIGNUM*, BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)' if (!BN_div(&r, NULL, &a, &b, pctx)) ^ src/bignum.h: In function 'const CBigNum operator%(const CBigNum&, const CBigNum&)': src/bignum.h:695:35: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_nnmod(BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)' if (!BN_nnmod(&r, &a, &b, pctx)) ^ src/bignum.h: In function 'const CBigNum operator<<(const CBigNum&, unsigned int)': src/bignum.h:703:33: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_lshift(BIGNUM*, const BIGNUM*, int)' if (!BN_lshift(&r, &a, shift)) ^ src/bignum.h: In function 'bool operator==(const CBigNum&, const CBigNum&)': src/bignum.h:715:83: error: cannot convert 'const CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_cmp(const BIGNUM*, const BIGNUM*)' perator==(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) == 0); } ^ src/bignum.h: In function 'bool operator!=(const CBigNum&, const CBigNum&)': src/bignum.h:716:83: error: cannot convert 'const CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_cmp(const BIGNUM*, const BIGNUM*)' perator!=(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) != 0); } ^ src/bignum.h: In function 'bool operator<=(const CBigNum&, const CBigNum&)': src/bignum.h:717:83: error: cannot convert 'const CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_cmp(const BIGNUM*, const BIGNUM*)' perator<=(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) <= 0); } ^ src/bignum.h: In function 'bool operator>=(const CBigNum&, const CBigNum&)': src/bignum.h:718:83: error: cannot convert 'const CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_cmp(const BIGNUM*, const BIGNUM*)' perator>=(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) >= 0); } ^ src/bignum.h: In function 'bool operator<(const CBigNum&, const CBigNum&)': src/bignum.h:719:83: error: cannot convert 'const CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_cmp(const BIGNUM*, const BIGNUM*)' operator<(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) < 0); } ^ src/bignum.h: In function 'bool operator>(const CBigNum&, const CBigNum&)': src/bignum.h:720:83: error: cannot convert 'const CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_cmp(const BIGNUM*, const BIGNUM*)'
|