Hi, I need a library to deal with very large numbers, I downloaded the BigInteger library (
https://mattmccutchen.net/bigint/) and tried running the sample.cc file in my Coderunner app but I get the error message below. Anyone either used this library successfully before, or can help me with what the error message means?
NB. I tried gmp and can't seem to install that properly. This one seems simpler, I would rather get this working if I can.
Undefined symbols for architecture x86_64:
"BigInteger::BigInteger(int)", referenced from:
_main in ccYX7kPc.o
"BigInteger::operator=(BigInteger const&)", referenced from:
_main in ccYX7kPc.o
BigInteger::operator%(BigInteger const&) constin ccYX7kPc.o
BigInteger::operator/(BigInteger const&) constin ccYX7kPc.o
"BigInteger::toInt() const", referenced from:
_main in ccYX7kPc.o
"stringToBigInteger(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)", referenced from:
_main in ccYX7kPc.o
"bigIntegerToString(BigInteger const&)", referenced from:
_main in ccYX7kPc.o
"operator<<(std::basic_ostream<char, std::char_traits<char> >&, BigInteger const&)", referenced from:
_main in ccYX7kPc.o
"BigUnsigned::BigUnsigned(unsigned int)", referenced from:
_main in ccYX7kPc.o
"BigUnsigned::BigUnsigned(int)", referenced from:
_main in ccYX7kPc.o
"operator<<(std::basic_ostream<char, std::char_traits<char> >&, BigUnsigned const&)", referenced from:
_main in ccYX7kPc.o
"modexp(BigInteger const&, BigUnsigned const&, BigUnsigned const&)", referenced from:
_main in ccYX7kPc.o
"modinv(BigInteger const&, BigUnsigned const&)", referenced from:
_main in ccYX7kPc.o
"gcd(BigUnsigned, BigUnsigned)", referenced from:
_main in ccYX7kPc.o
"BigUnsigned::multiply(BigUnsigned const&, BigUnsigned const&)", referenced from:
BigUnsigned::operator*=(BigUnsigned const&)in ccYX7kPc.o
"BigUnsigned::bitShiftRight(BigUnsigned const&, int)", referenced from:
BigUnsigned::operator>>(int) constin ccYX7kPc.o
"BigUnsigned::bitShiftLeft(BigUnsigned const&, int)", referenced from:
BigUnsigned::operator<<(int) constin ccYX7kPc.o
"BigUnsigned::bitXor(BigUnsigned const&, BigUnsigned const&)", referenced from:
BigUnsigned::operator^(BigUnsigned const&) constin ccYX7kPc.o
"BigUnsigned::bitOr(BigUnsigned const&, BigUnsigned const&)", referenced from:
BigUnsigned::operator|(BigUnsigned const&) constin ccYX7kPc.o
"BigUnsigned::bitAnd(BigUnsigned const&, BigUnsigned const&)", referenced from:
BigUnsigned::operator&(BigUnsigned const&) constin ccYX7kPc.o
"BigInteger::divideWithRemainder(BigInteger const&, BigInteger&)", referenced from:
BigInteger::operator%(BigInteger const&) constin ccYX7kPc.o
BigInteger::operator/(BigInteger const&) constin ccYX7kPc.o
"BigInteger::multiply(BigInteger const&, BigInteger const&)", referenced from:
BigInteger::operator*(BigInteger const&) constin ccYX7kPc.o
"BigInteger::subtract(BigInteger const&, BigInteger const&)", referenced from:
BigInteger::operator-(BigInteger const&) constin ccYX7kPc.o
"BigInteger::add(BigInteger const&, BigInteger const&)", referenced from:
BigInteger::operator+(BigInteger const&) constin ccYX7kPc.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status