Version française
Home     About     Download     Resources     Contact us    
Browse thread
Building PCRE-OCaml on Win32
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Roger Levy <rlevy@i...>
Subject: Re: [Caml-list] Building PCRE-OCaml on Win32
Peter Jolly wrote:
> Roger Levy wrote:
> 
>>Installing library with ocamlfind
>>ocamlfind install  pcre META pcre.mli pcre.cmi pcre.cma pcre.cmxa pcre.a 
>>libpcre_stubs.a dllpcre_stubs.so
>>ocamlfind: dllpcre_stubs.so: No such file or directory
> 
> 
> This is your problem.  It is attempting to install a .so file, which
> _cannot_ exist, since (a) Cygwin uses .dll for shared libraries rather
> than .so, and (b) the Cygwin port of OCaml does not support shared
> libraries in any case.
> 
> Rebuild PCRE for static linking only, and it should install happily.

Thank you!  This worked.  (FWIW: I did this by uncommenting the line

export STATIC = yes

in the top-level Makefile.conf)

I don't understand how to refer to the pcre module with ocamlc or the
toplevel, but I suspect this is more of a newbie question so I'm moving
it into the caml-beginnners list.

Many thanks.

Roger