Re: Trouble findin a library which *is* installed
| Newsgroups | gmane.comp.lang.ocaml.beginners |
|---|---|
| Message-ID | <CAAEuznfi5VWSTMKUn6HMGYTG49kRew+xpeo47vbERA+3B41xuA@mail.gmail.com> |
If you go into utop them type #require " then push tab it will complete the names. Also if you install them from opam then they will share the same name you installed them with On Fri, Jul 3, 2015, 2:54 PM Hendrik Boom [email protected] [ocaml_beginners] <[email protected]> wrote: > On Fri, Jul 03, 2015 at 09:47:47PM +0100, Jeremy Yallop [email protected] > [ocaml_beginners] wrote: > > On 3 July 2015 at 20:32, Hendrik Boom [email protected] > > [ocaml_beginners] <[email protected]> wrote: > > > I downloaded some code as an example of using Cairo with Gdk from the > web page > http://www.donadeo.net/post/2008/draw-something-on-the-screen-and-interact-with-it > . > > > > > > I try to compile it: > > > > > > endrik@notlookedfor:~/dv/fun/group/toy/cairo_toy$ ocamlfind ocamlopt > -package gdkEvent toy_maker.mli toy_maker.ml my_interactor.ml demo_toy.ml > -o runme > > > ocamlfind: Package `gdkEvent' not found > > > > The module is called 'GdkEvent', but the package is called 'lablgtk2', > > so you may need something more like this: > > > > ocamlfind ocamlopt -package lablgtk2 toy_maker.mli toy_maker.ml > > my_interactor.ml demo_toy.ml -o runme > > Thanks. > > That gets me a lot further. Now, of course, it's asking for the Cairo > module. > > Is there a way to find the name of the package contiaining a > particular module without asking here all the time? > > -- hendrik > >