package gmp

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

Install

Dune Dependency

Authors

Maintainers

Sources

6.2.1-1.tar.gz
md5=8244bd320d94e3e6c4430737d3eff220
sha512=83601526fd2c6ad181fb60353d75fd0c44ce0bd010324f16c14d9019f64e16c0496b9fbbba6f4f5b4eb55e5584ff9e65ce16aa3f016e905cfa5bc91b9876c1a3

Description

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

Published: 13 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