package gmp

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

gmp-6.3.0.tbz
sha256=eaa668ebbe1319673ad385b52a9a35d7ee31a8ad67f7677461893e373aeb4b95
sha512=f604c08ff981ac9d67fecde26c652422b66dbd14ed87de40c0db03da87e05ef4c18f041f2bd636f183328ff9e8e823c18f7e32a105a6c7dd21fb16325b5e9037

Description

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

Published: 28 Jul 2025

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 (1)

  1. ocaml-solo5 < "0.8.3"
OCaml

Innovation. Community. Security.