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 (22:10)
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
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