Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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/
> 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/ 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                                   
Austrian Research Institute
for Artificial Intelligence        
Bug reports:  FAQ:
To unsubscribe, mail  Archives: