1. Download gmp source tar file from Download
2. Extract tar and go into the gmp directory
3. sudo ./configure --enable-cxx
4. sudo make
5. sudo make check
6. sudo make install
Compile
1. Compile .hxx first, for eg:
g++ ZZ_p.hxx -lgmpxx -lgmp
ignore error in compilation like undefind reference to main
2. Compile the source file
g++ test_zz_p.hxx -lgmpxx -lgmp