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] Problem using pcre on Debian
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-02-22 (14:48)
From: Markus Mottl <markus@o...>
Subject: Re: [Caml-list] Problem using pcre on Debian
On Fri, 22 Feb 2002, Johann Spies wrote:
> The compilation went without a problem after I removed the comment to
> use STATIC=1 in the Makefile.  I also copied  META to the installation
> directory.

What is the particular problem that prevents you from compiling the PCRE
as a shared library?

> Now when  try to use it in the toplevel the following happens:
> -------------------------------------
> $ ledit ocaml
>         Objective Caml version 3.04
> # #require "pcre";;
> Loading /usr/local/lib/ocaml/pcre/pcre.cma
> The external function `pcre_exec_wrapper_bc' is not available

This is quite natural: since you haven't compiled the PCRE as a shared
library, the toplevel assumes that every object it needs for it is already
linked statically. This, however, is not the case: you'll have to create
a new toplevel and link it with the PCRE-library then.

Markus Mottl

Markus Mottl                                             markus@oefai.at
Austrian Research Institute
for Artificial Intelligence                  http://www.oefai.at/~markus
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners