English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] How to use pcre
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-09-07 (06:59)
From: Johann Spies <jspies@m...>
Subject: Re: [Caml-list] How to use pcre (3)
Markus Mottl <markus@mail4.ai.univie.ac.at> 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 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