Re: Trouble finding a library which *is* installed
| Newsgroups | gmane.comp.lang.ocaml.beginners |
|---|---|
| Message-ID | <CAPFanBH-atft-kwStxP0FvmYMkLM4FjtofGJNVD19bMdzG58zQ@mail.gmail.com> |
When building an executable you should pass the flag -linkpkg to ocamlfind. On Sun, Jul 12, 2015 at 7:54 AM, Hendrik Boom [email protected] [ocaml_beginners] <[email protected]> wrote: > On Sat, Jul 04, 2015 at 10:29:22AM -0400, Hendrik Boom > [email protected] [ocaml_beginners] wrote: > > On Sat, Jul 04, 2015 at 06:19:02AM +0000, Gage Peterson > [email protected] [ocaml_beginners] wrote: > > > Use opam. It will work out much better. Also I don't think you should > ever > > > have to run it from root. > > > > Running it from root was a mistake. And the way it affected the > > results was a clue that the Debian-installed packages weren't even > > being seen. THough first I misinterpreted the clue. > > > > I'll try opam. That should work. > > > > Will report back. > > OK. Did > opam install lablgtk > and > opam install cairo > > Now I get > > hendrik@notlookedfor:~/dv/fun/group/toy/cairo_toy$ ocamlfind ocamlopt > -package cairo -package lablgtk2 toy_maker.mli toy_maker.ml > my_interactor.ml demo_toy.ml -o runme > File "demo_toy.ml", line 1: > Error: No implementations provided for the following modules: > GMain referenced from toy_maker.cmx, my_interactor.cmx > GPack referenced from toy_maker.cmx > GWindow referenced from toy_maker.cmx > GBin referenced from toy_maker.cmx > Cairo referenced from my_interactor.cmx > GMisc referenced from toy_maker.cmx > hendrik@notlookedfor:~/dv/fun/group/toy/cairo_toy$ > > > Can I conclude that I'm now getting as far as the linker? > > How do I go abbout getting it to actually *find* these modules? > > -- hendrik > > > ------------------------------------ > Posted by: Hendrik Boom <[email protected]> > ------------------------------------ > > Archives up to December 31, 2011 are also downloadable at > http://www.connettivo.net/cntprojects/ocaml_beginners > The archives of the very official ocaml list (the seniors' one) can be > found at http://caml.inria.fr > Attachments are banned and you're asked to be polite, avoid flames etc. > ------------------------------------ > > Yahoo Groups Links > > > >