Re: cairo pdf
Christophe Troestler <[email protected]>
| Newsgroups | gmane.comp.lang.ocaml.beginners |
|---|---|
| Organization | University of Mons |
| Message-ID | <20140422.203822.1301235777658732676.Christophe.Troestler@umons.ac.be> |
On Tue, 22 Apr 2014 13:50:28 -0400, Hendrik Boom wrote: > > ocamlfind ocamlopt -package cairo2 grouptable.ml -o grouptable > File "grouptable.ml", line 1: > Error: No implementations provided for the following modules: > Cairo referenced from grouptable.cmx > make: *** [pdf] Error 2 > hendrik@notlookedfor:~/dv/fun/group$ Yes, for a program, I forgot: you need to add -linkpkg (otherwise the package is only used to compile, not to link). > open cairo > > at the start of my code, right? I would not. Doing so only allows to write “x” instead of “Cairo.x”. (You do not need to declare a module in OCaml befor eusing it.) “Cairo” is not that long, so the latter is fine and makes it clearer what the origin of the function “x” is. If it is too long for you, use “module C = Cairo”. Then you can write “C.x”. > [...] Could something be wrong with get_target? No, you need to write “Cairo.get_target”. Best, C.