From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 78B59BB9A for ; Thu, 27 Oct 2005 23:31:02 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j9RLV1UB027433 for ; Thu, 27 Oct 2005 23:31:02 +0200 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id XAA07838 for ; Thu, 27 Oct 2005 23:31:01 +0200 (MET DST) Received: from nutty.inf.ed.ac.uk (nutty.inf.ed.ac.uk [129.215.216.3]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j9RLV04S027407 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 27 Oct 2005 23:31:01 +0200 Received: from [127.0.0.1] (vpn-055.vpn.net.ed.ac.uk [129.215.37.55]) by nutty.inf.ed.ac.uk (8.12.8/8.12.8) with ESMTP id j9RLUvne015138; Thu, 27 Oct 2005 22:30:58 +0100 Message-ID: <4361470C.5030903@inf.ed.ac.uk> Date: Thu, 27 Oct 2005 22:30:52 +0100 From: Roger Levy Organization: School of Informatics, University of Edinburgh User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: caml-list Subject: Re: [Caml-list] Building PCRE-OCaml on Win32 References: <4361306F.9060208@inf.ed.ac.uk> <436135B7.3070607@jollys.org> In-Reply-To: <436135B7.3070607@jollys.org> Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit X-Miltered: at nez-perce with ID 43614715.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 43614714.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 pcre-ocaml:01 ocamlfind:01 ocamlfind:01 pcre:01 pcre:01 mli:01 cmi:01 cmxa:01 libpcre:01 stubs:01 dllpcre:01 stubs:01 dllpcre:01 ocaml:01 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 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