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

README.md.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.

OCaml

Innovation. Community. Security.