$ ocamlbuild prog.byte
+ /Users/ashish/godi/bin/ocamlc.opt lib.cmo sup.cmo prog.cmo -o prog.byte
Error while linking lib.cmo: Reference to undefined global `A2'
Command exited with code 2.
The problem is that a2.cmo should be included but is not. The linking is done correctly if I do any of the following:
- delete a2.mli
- in
prog.ml, directly call Lib.A.f (which is what Sup.B.g is defined as)
- in
prog.ml, directly call B.g, without packing B in Sup
I would appreciate any help. Thank you.