Introduction to GMP

The GMP package contains math libraries. These have useful functions for arbitrary precision arithmetic.

Package information

Installation of GMP

Install GMP by running the following commands:

./configure --prefix=/usr --enable-cxx \
    --enable-mpbsd --enable-mpfr &&
make &&
make install

Command explanations

--enable-cxx: This parameter enables C++ support by building the libgmpxx libraries.

--enable-mpbsd: This parameter enables building the Berkeley MP compatibility (libmp) libraries.

--enable-mpfr: This parameter enables building the Multiple Precision Floating-Point Reliable (libmpfr.a) library.


The GMP package contains libgmp and libmp libraries.


libgmp and libmp libraries

libgmp and libmp libraries contain functions to operate on signed integers, rational numbers, and floating point numbers.

Last updated on 2005-02-04 16:29:53 -0700