I\'m working on llvm OCaml bindings.
I installed llvm package through opam (opam install llvm), when I use llvm in utop, I get the following error:
(as I'm asked to answer my own question...)
ocamlmktop -o llvmtop llvm.cma -cc g++
Then launch llvmtop, you can use llvm bindings after open Llvm.
I haven't found an equivalent for utop yet..
utopThanks to the utop documentation here
create a myutop_main.ml file:
let () = UTop_main.main ()
create a custom utop with llvm bindings:
ocamlfind ocamlmktop -o llvmutop -thread -linkpkg -package utop -package llvm myutop_main.ml -cc g++