I've seen ocamlfind being used by the build process of some packages. Then just a quick search on the internet. The readme of zarith also mentions it. It also mentions using ocamlc directly, but that didn't work for me.
Le 2 janvier 2025 02:18:25 GMT+01:00, Zelphir Kaltstahl <[email protected]> a écrit : >On 31.12.24 15:57, Julien Lepiller wrote: >> I tried and after adding ocaml-findlib in the shell, I was able to build >> with: >> >> ocamlfind ocamlc -package zarith -linkpkg -o main main.ml >> >> I don't use ocaml often but it looks like how you need to specify the >> libraries to gcc with -I and -l. >> >> I don't know how it would work with ocamlc alone. Does it work like that on >> other distros? > >Hi Julien! > >Thank you for figuring this out! It works for me as well. > >May I ask, how you found out about this? > >Best regards, Zelphir >
