package gmp

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

Install

Dune Dependency

Authors

Maintainers

Sources

gmp-6.2.1-5.tbz
sha256=26b24412e18b511f1b8af6f9bf891452e214e32773fdf2f68004310dc9f016f5
sha512=d3f7cb9043bb387c95d2f95fa82d832dc00287a8ba039ac82b573c849943c181045d61af32b3f47ae48d43c85ab52ab23570a8c4095a7d84c854f26aa38a0844

Description

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

Published: 16 Feb 2024

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.