mmottl / gsl-ocaml

OCaml bindings to the GSL (GNU Scientific Library).
Other
36 stars 10 forks source link

OCaml 5.0 compatibility #36

Closed Octachron closed 9 months ago

Octachron commented 1 year ago

This PR makes gsl-ocaml compatible with OCaml 5 by replacing the use of function short names (e.g copy_double) (which were removed in OCaml 5) by their full names (e.g. caml_copy_double) .

There is also a small fix that use an explicit cast to work around the fact that the Field macro returns now a volatile value, and another which adds the unix library as a dependency to the various examples.

mmottl commented 9 months ago

Thanks a lot for this change and sorry for the long delay!