Re: Can't compile with cairo2

"Christophe Troestler [email protected] [ocaml_beginners]" <[email protected]>
Newsgroups gmane.comp.lang.ocaml.beginners
Organization University of Mons
Message-ID <20150203.233058.1237274190114333137.Christophe.Troestler@umons.ac.be>
Hi,

On Tue, 3 Feb 2015 22:33:34 +0100, Sébastien Dailly [email protected] [ocaml_beginners] wrote:
> 
> Hello,
> 
> I just installed cairo2 from opam, but when I try to compile some code I
> got a link error :
> 
> > $ ocamlfind ocamlc -package cairo2 test.ml

You need to use

$ ocamlfind ocamlc -package cairo2 -linkpkg test.ml

Best,
C.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.