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 (14:45)
From: Markus Mottl <markus@m...>
Subject: Re: [Caml-list] How to use pcre (2)
On Thu, 06 Sep 2001, Johann Spies wrote:
> I suspect there is something wrong with my installation.  I have
> compiled pcre in /usr/local/src and put the following files in
> /usr/local/lib/ocaml:

This is an FAQ and not related to the Pcre in particular: the problem
is that

  a) you have to build a "customized" toplevel, because a C-library
     has to be linked in. This is very easy:

       ocamlmktop -I {dir with Pcre} pcre.cma -o mytoplevel

  b) "mytoplevel" doesn't "see" the interface file "pcre.cmi" if you don't
     tell it the include path. Therefore launch it as follows:

       mytoplevel -I {dir with Pcre}

If you do this all, things should work fine.

Markus Mottl

Markus Mottl                                   
Austrian Research Institute
for Artificial Intelligence        
Bug reports:  FAQ:
To unsubscribe, mail  Archives: