Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
From: Nicolas George <nicolas.george@e...>
Subject: Re: [Caml-list] How to use pcre (3)
Le jeudi 06 septembre 2001 à 21:51, Johann Spies a écrit :
> $ocamlfind ocamlopt -o rex -I /usr/lib/ocaml/contrib -ccopt
> -L/usr/lib/ocaml/contrib  -cclib -llibpcre.a -linkall /tmp/rex.ml
>
> No implementations provided for the following modules:
>   Pcre referenced from /tmp/rex.cmx

You provide code for the C-OCaml binding, but not the OCaml functions of
Pcre. You should try something like that:

ocamlopt -o rex -I +contrib pcre.cmxa /tmp/rex.ml

The archives (cma and cmxa) il the latest versions of OCaml, record the
compiler options needed. And the +contrib is a shortcut for
/path/of/ocaml/distribution/contrib.
-------------------
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