Include OCaml binary library -
i'm trying use ocamlgraph library , it's not clear me how add project. suggested me compile source of library along source of project, there has way of linking binary of precompiled library without using opam. can done, , if so, how?
thanks.
compiling:
ocamlc -i /path/to/ocamlgraph -c mysource.ml
(as suggested ocamlfind ocamlc -package ocamlgraph -c -only-show
, if ocamlfind , ocamlgraph installed)
linking:
ocamlc -i /path/to/ocamlgraph /path/to/ocamlgraph/graph.cma mysource.cmo -o test.byte
(as suggested ocamlfind ocamlc -linkpkg -package ocamlgraph -only-show
)
but normally, should use ocamlfind , ocamlgraph package of opam or distribution.
Comments
Post a Comment