Using big_int and C binding


I would like to compile an OCaml program that uses big_int with a C program that uses it.

I followed this blog:

It works fine, except that I cannot compile the actual code using ocamlopt; I get the following error:

Error: No implementations provided for the following modules:
Big_int referenced from tmp.cmx

Trying to add nums.cmxa gives multiple errors, even though ocamlc with nums.cma compiles fine.

Any idea what might be the problem?

(I’m an OCaml newbie)