Hello Julien!

Indeed, it is in the readme of zarith. I should have checked more thoroughly. I skipped that whole "Installation" section, because I thought: "I already installed it using Guix." ^^'

Anyway, now with library usage being possible and finally having a working factorial (haha), I can continue learning! Thanks you for your help!

Best wishes,
Zelphir

On 02.01.25 08:44, Julien Lepiller wrote:
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

--
repositories: https://notabug.org/ZelphirKaltstahl, 
https://codeberg.org/ZelphirKaltstahl


Reply via email to