On Wed, Apr 11, 2012 at 12:41 AM, Adrien <camarade...@gmail.com> wrote: > > Nothing is wrong with it. As far as I remember, the "-I +..." syntax is > relative to the location of the compiler. On my godi install, I get: > % ocamlc -where > /opt/ocaml/lib/ocaml/std-lib > > As you can see, "std-lib" <> "site-lib" (and same for "pkg-lib"). By the > way, if I'm not mistaken, on godi, std-lib is for the base ocaml, > pkg-lib is for what has been installed through godi and site-lib is for > user-installed packages (and godi has a cryptokit package ;-) ).
Thanks, I realise I hadn't properly understood what -I +... was doing. I can't use the cryptokit from godi because opa depends on cryptokit-1.5 and godi ships 1.3. > The right way to do it is to compile with ocamlfind which will always > know the right location. > % ocamlfind query cryptokit > /opt/ocaml/lib/ocaml/pkg-lib/cryptokit > > % ocamlfind ocamlopt -package cryptokit -c ... Wish I could! It's a pretty big open source project that I'm merely trying to get compiled so I can use it. I don't have the time to sit and hack at their build system :( But thanks for the detailed explanation of why ocamlfind is the way to go; I'll definitely be using it for all my personal projects. martin -- Caml-list mailing list. Subscription management and archives: https://sympa-roc.inria.fr/wws/info/caml-list Beginner's list: http://groups.yahoo.com/group/ocaml_beginners Bug reports: http://caml.inria.fr/bin/caml-bugs