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-06 (21:56)
From: Markus Mottl <markus@m...>
Subject: Re: [Caml-list] How to use pcre (3)
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... ;)

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