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 XAA18278; Thu, 6 Sep 2001 23:56:00 +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 XAA18265 for ; Thu, 6 Sep 2001 23:55:59 +0200 (MET DST) Received: from chopin.ai.univie.ac.at (chopin.ai.univie.ac.at [131.130.174.170]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f86LtxL10833 for ; Thu, 6 Sep 2001 23:55:59 +0200 (MET DST) Received: (from markus@localhost) by chopin.ai.univie.ac.at (8.9.3/8.9.3/Debian 8.9.3-21) id XAA31629; Thu, 6 Sep 2001 23:55:57 +0200 Date: Thu, 6 Sep 2001 23:55:57 +0200 From: Markus Mottl To: Gerd Stolpmann Cc: ocaml Subject: Re: [Caml-list] How to use pcre (3) Message-ID: <20010906235557.A31526@chopin.ai.univie.ac.at> References: <87pu94lbdt.fsf@bywoner.sun.ac.za> <20010906164530.F24260@chopin.ai.univie.ac.at> <87heug5c81.fsf_-_@adept.co.za> <01090623430915.02716@ice> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <01090623430915.02716@ice>; from info@gerd-stolpmann.de on Thu, Sep 06, 2001 at 23:28:31 +0200 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Gerd Stolpmann schrieb am Donnerstag, den 06. September 2001: > ocamlopt -o rex -I /usr/lib/ocaml/contrib pcre.cmxa /tmp/rex.ml > > SHOULD suffice. Perhaps you need the -ccopt and -cclib options, too, that > depends on how clever pcre is installed (can't remember) (oh, and it's -lpcre, > not -llibpcre.a, if you need it). The -I option suffices: OcamlMakefile, which is used in the Pcre-distribution, always (by default) compiles libraries in such a way so as to allow "automatic linking". > ocamlfind makes only a difference if the pcre installation contains a so-called > META file, and in this case you could do: ocamlfind ocamlopt -o rex -package > pcre -linkpkg /tmp/rex.ml. That's for people who like it comfortable (here in > Germany we say "Warmduscher", don't know how to translate it). Well, I wouldn't recommend OcamlMakefile to people who prefer cold showers either... ;) Regards, Markus Mottl -- Markus Mottl markus@oefai.at Austrian Research Institute for Artificial Intelligence http://www.oefai.at/~markus ------------------- 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