I took over an ocaml project that consists of a main program and a library, but the library is built indepenently. Linking the main program was up until now possible with "ocamlopt -I mylib.cmxa myprogram.ml" - but I had problems using opam libraries with ocamlopt so I decided to move to "dune" instead.
My question is: How do I link with the ocaml library using dune so that the result is the same like the ocamlopt line above did?