package gmp

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

gmp-6.3.0-1.tbz
sha256=cafe5beff5f35cb4451e341e1c07a019ac7047dd280ff55410e42ccc133bb757
sha512=22e00bae49ce436b7fc9ca458bf1b9c6eece73bbe05829d76c61c22d4e215160c12c39a511253a643eda205bb41ddee83f241e72439c0058a8cf767104683d21

doc/README.html

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.