From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id 0EF53BBAF for ; Thu, 23 Apr 2009 11:30:52 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhIHAG7S70lQDPIbYmdsb2JhbACWPhcJBQUHEwO5BoN1Bg X-IronPort-AV: E=Sophos;i="4.40,235,1238968800"; d="scan'208";a="25034886" Received: from smtp20.orange.fr ([80.12.242.27]) by mail2-smtp-roc.national.inria.fr with ESMTP; 23 Apr 2009 11:30:51 +0200 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2007.orange.fr (SMTP Server) with ESMTP id 90A8B2000110; Thu, 23 Apr 2009 11:30:51 +0200 (CEST) Received: from [192.168.1.66] (APuteaux-154-1-78-106.w83-204.abo.wanadoo.fr [83.204.241.106]) by mwinf2007.orange.fr (SMTP Server) with ESMTP id 6035820000A0; Thu, 23 Apr 2009 11:30:51 +0200 (CEST) X-ME-UUID: 20090423093051394.6035820000A0@mwinf2007.orange.fr Message-ID: <49F03546.90001@frisch.fr> Date: Thu, 23 Apr 2009 11:30:46 +0200 From: Alain Frisch User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: David Allsopp Cc: OCaml List Subject: Re: [Caml-list] Building pcre-ocaml on OCaml 3.11.0 on MinGW References: <001801c99367$7a56e740$6f04b5c0$@com> In-Reply-To: <001801c99367$7a56e740$6f04b5c0$@com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; frisch:01 frisch:01 pcre-ocaml:01 ocaml:01 mingw:01 pcre-ocaml:01 libpcre:01 libpcre:01 usr:01 cflags:01 -mno-cygwin:01 usr:01 mingw:01 cygwin:01 ctype:01 Hi David, David Allsopp wrote: > I've just had an enlightening few hours getting pcre-ocaml to compile under > Windows >... > The main thing that's got me puzzled is the renaming of libpcre.dll.a and > libpcre.a that I have to do to get the thing to link. Thanks for investigating this issue! The current SVN version of flexlink prefers XXX.dll.a over XXX.a. We will see whether it solves more problems than it creates... Of course, it is always possible to pass explicitly the complete file name instead of -lXXX. To build and use ocaml-pcre, I've had to remove the "-I /usr/include" from this line in OCamlMakefile: CFLAGS_WIN32 := -mno-cygwin -I /usr/include Otherwise, Cygwin's headers are used instead of mingw's ones (in /usr/include/mingw), and we get a dependency e.g. to the Cygwin symbol _ctype_ which is not available on mingw. Have you had to do something similar? Alain