OKlibrary  0.2.1.6
Gmp.hpp File Reference

Documentation on how to build and use Gmp. More...

Go to the source code of this file.


Detailed Description

Documentation on how to build and use Gmp.

Installing and using Gmp

On the purpose of Gmp

Gmp is a C-library for computation with integers, rationals and floating point numbers of arbitrary size.

What the installation yields

  • The gmp.h header file and the corresponding link library (libgmp.a and variations).
  • Documentation (info-pages; we extract also the html and dvi documentation).
  • The package default is to install under /usr/local (in sub-directories include, lib and info). But our default is local installation.

Usage

  • To include the gmp-header use
    #include <gmp.h>
    
    together with "${gmp_include_option_okl}" as option for gcc.
  • To link with gmp, use "${gmp_link_option_okl}" as option for gcc.

Current state of installation

How to install

Make targets

gmp Build the recommended version of gmp, using the local gcc.
cleanallgmp Remove build, installation and documentation directory.

Configuration

  • Local versus system-wide installation:
    1. The default is local installation.
    2. Set variable gmp_default_install_okl to value "system" to switch.
  • To install a different version, set variable gmp_recommended_version_number_okl accordingly.
  • And to use a different version of gcc set variable gcc_recommended_version_number_okl accordingly.

Definition in file Gmp.hpp.