From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id AAA18543; Fri, 7 Sep 2001 00:10:32 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id AAA18505 for ; Fri, 7 Sep 2001 00:10:31 +0200 (MET DST) Received: from nef.ens.fr (nef.ens.fr [129.199.96.32]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f86MAVL11028 for ; Fri, 7 Sep 2001 00:10:31 +0200 (MET DST) Received: from clipper.ens.fr (clipper-gw.ens.fr [129.199.1.22]) by nef.ens.fr (8.10.1/1.01.28121999) with ESMTP id f86MAUn29818 ; Fri, 7 Sep 2001 00:10:30 +0200 (CEST) Received: from aimlin.ens.fr (root@clipper [129.199.129.1]) by clipper.ens.fr (8.9.2/jb-1.1) id AAA09283 ; Fri, 7 Sep 2001 00:10:25 +0200 (MET DST) Received: by aimlin.ens.fr (Postfix, from userid 501) id 2F6AB380E8; Thu, 6 Sep 2001 23:12:12 +0200 (CEST) Date: Thu, 6 Sep 2001 23:12:11 +0200 From: Nicolas George To: Johann Spies Cc: ocaml Subject: Re: [Caml-list] How to use pcre (3) Message-ID: <20010906231211.A3186@aimlin> References: <87pu94lbdt.fsf@bywoner.sun.ac.za> <20010906152958.B24260@chopin.ai.univie.ac.at> <87sne0jt71.fsf_-_@bywoner.sun.ac.za> <20010906164530.F24260@chopin.ai.univie.ac.at> <87heug5c81.fsf_-_@adept.co.za> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.1.4i In-Reply-To: <87heug5c81.fsf_-_@adept.co.za>; from jhspies@adept.co.za on Thu, Sep 06, 2001 at 09:51:58PM +0200 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Le jeudi 06 septembre 2001 à 21:51, Johann Spies a écrit : > $ocamlfind ocamlopt -o rex -I /usr/lib/ocaml/contrib -ccopt > -L/usr/lib/ocaml/contrib -cclib -llibpcre.a -linkall /tmp/rex.ml > > No implementations provided for the following modules: > Pcre referenced from /tmp/rex.cmx You provide code for the C-OCaml binding, but not the OCaml functions of Pcre. You should try something like that: ocamlopt -o rex -I +contrib pcre.cmxa /tmp/rex.ml The archives (cma and cmxa) il the latest versions of OCaml, record the compiler options needed. And the +contrib is a shortcut for /path/of/ocaml/distribution/contrib. ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr