package gmp

  1. Overview
  2. Docs
The GNU Multiple Precision Arithmetic Library

Install

Dune Dependency

Authors

Maintainers

Sources

6.2.1-2.tar.gz
md5=367ce7ec00ee8866ad89ad1339f22896
sha512=0eb8c32fb37ed068ab653884f1afeffcfe9c65f86404de326a2d27fb503a2db2ce1dba79f8cfad2c56647a94ff1e5b02dfd8e0b7cd4154ab15c2717f5f61b0ee

Description

Dune packaging of the GMP library, suitable for cross-compilation.

Published: 28 Oct 2021

README

GMP - Packaged with Dune

More info on GMP: https://gmplib.org/

To use GMP in a cross-compilation-friendly way, simply add this library in your library dependencies and make sure it is locally fetched using the opam-monorepo plugin (https://github.com/ocamllabs/opam-monorepo).

Example Dune configuration:

(library my_library)
 (foreign_stubs (language c) (include_dirs (lib gmp)))
 (libraries gmp)
 ...
)

This configuration enables the inclusion of gmp.h and the usage of gmp functions, even in a cross-compiled environment such as MirageOS.

Dependencies (3)

  1. conf-m4
  2. dune >= "2.6"
  3. ocaml >= "4.02.0"

Dev Dependencies

None

Used by

None

Conflicts

None