BigIntegerLibrary.hh

I downloaded a library that is in this link:

https://mattmccutchen.net/bigint/

then when I tried to run this code

1
2
3
4
5
6
7
8
9
10
#include<iostream>
#include "BigIntegerLibrary.hh"
using namespace std;
 int main()
{
      
BigInteger a = 65536;
cout << (a * a * a * a * a * a * a * a);

}


I got this errors:
undefined reference to `BigInteger::BigInteger(int)'
undefined reference to `operator<<(std::ostream&, BigInteger const&)'
C:\collect2.exe [Error] ld returned 1 exit status
BigInteger::multiply(BigInteger const&, BigInteger const&)'

I am totally confused? what does these errors mean and how to solve the problem?
This library was last updated more than 5 years ago...


Also you may not have the header/source files in the same directory as your project.

Try including the direct path to the header.

here's his source by the way. https://mattmccutchen.net/bigint/bigint.git/tree/66d84fa2e51e36706556be30cb38c8026db32e46

Though I personally would just use boost's big int or make one, should be fairly trivial for basic bigint.
Last edited on
Have you read the README file?

The following worked on Linux:
g++ main.cpp Big*.cc -o dilver\'s_app
Last edited on
Topic archived. No new replies allowed.