I am building a top level using ocamlmktop, like so:
ocamlfind ocamlmktop -package camlpdf -linkpkg -o cpdf.top *.cmo
This is for a project, cpdf. which uses an exisiting library camlpdf.
Ocamlfind expands this to:
ocamlmktop -g -o cpdf.top -I /Users/john/.opam/4.13.1/lib/camlpdf /Users/john/.opam/4.13.1/lib/camlpdf/camlpdf.cma *.cmo
It succeeds, and we can access the cpdf functions, and they work because the camlpdf code has been included too. But we cannot access the functions from the included library camlpdf directly:
OCaml version 4.13.1 # Cpdfcommand.go;; - : unit -> unit = <fun> # Pdfutil.map;; Error: Unbound module Pdfutil
Is there a way to do so by changing my command, or are they always hidden? Do I need to re-export them manually somehow from within my source code?