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 IAA23068; Fri, 7 Sep 2001 08:59:11 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id IAA23225 for ; Fri, 7 Sep 2001 08:59:09 +0200 (MET DST) Received: from maties2.sun.ac.za (maties2.sun.ac.za [146.232.128.10]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f876x3P25063 for ; Fri, 7 Sep 2001 08:59:08 +0200 (MET DST) Received: from bywoner.sun.ac.za ([146.232.129.121]) by maties2.sun.ac.za with esmtp (Exim 3.33 #1) id 15fFbS-0005b2-00 for caml-list@inria.fr; Fri, 07 Sep 2001 08:59:02 +0200 Received: from js by bywoner.sun.ac.za with local (Exim 3.22 #1 (Debian)) id 15fFbS-0004N2-00 for ; Fri, 07 Sep 2001 08:59:02 +0200 To: ocaml mailing list Subject: Re: [Caml-list] How to use pcre (3) 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> <20010906232356.A31302@chopin.ai.univie.ac.at> From: Johann Spies Date: 07 Sep 2001 08:59:01 +0200 In-Reply-To: Markus Mottl's message of "Thu, 6 Sep 2001 23:23:56 +0200" Message-ID: <87ofonjxl6.fsf@bywoner.sun.ac.za> User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Markus Mottl writes: > The problem is that you have to add pcre.cmxa (or pcre.cma for byte code) > before your /tmp/rex.ml. It's not enough to link against the C-library, > or better: you don't even have to do this. > > This should suffice: > > ocamlopt -o rex -I /usr/lib/ocaml/contrib -ccopt \ > -L/usr/lib/ocaml/contrib pcre.cmxa /tmp/rex.ml > > I don't know ocamlfind, because I usually use OcamlMakefile for just As with my previous questions to this list I have learnt a lot. This time about compilation, OcamlMakefile and Ocamlfind's META. Thanks to Marcus, Gerd, Alain and Nicolais for their answers. Johann -- Johann Spies Telefoon: 021-808 4036 Informasietegnologie, Universiteit van Stellenbosch "For whosoever shall call upon the name of the Lord shall be saved." Romans 10:13 ------------------- 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