Using big_int and C binding

ffi
build

#1

Hi,

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

I followed this blog: http://www.mega-nerd.com/erikd/Blog/CodeHacking/Ocaml/calling_ocaml.html

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)

Thanks!
Elazar