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=none autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id 03644BBAF for ; Thu, 23 Apr 2009 12:32:21 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AiEDAAfg70nU4367n2dsb2JhbACBT5R5AQEBAQEICwgJEQO5FAGDdAY X-IronPort-AV: E=Sophos;i="4.40,235,1238968800"; d="scan'208";a="38919629" Received: from moutng.kundenserver.de ([212.227.126.187]) by mail4-smtp-sop.national.inria.fr with ESMTP; 23 Apr 2009 12:32:21 +0200 Received: from office1.lan.sumadev.de (dslb-094-219-222-076.pools.arcor-ip.net [94.219.222.76]) by mrelayeu.kundenserver.de (node=mrelayeu8) with ESMTP (Nemesis) id 0ML31I-1LwwE21wDJ-0000U9; Thu, 23 Apr 2009 12:32:14 +0200 Received: from [192.168.5.104] (dslb-094-219-222-076.pools.arcor-ip.net [94.219.222.76]) by office1.lan.sumadev.de (Postfix) with ESMTPSA id 850DAC0EA5; Thu, 23 Apr 2009 12:30:56 +0200 (CEST) Subject: Re: [Caml-list] Building pcre-ocaml on OCaml 3.11.0 on MinGW From: Gerd Stolpmann To: Alain Frisch Cc: David Allsopp , OCaml List In-Reply-To: <49F03546.90001@frisch.fr> References: <001801c99367$7a56e740$6f04b5c0$@com> <49F03546.90001@frisch.fr> Content-Type: text/plain Date: Thu, 23 Apr 2009 12:34:37 +0200 Message-Id: <1240482878.13057.70.camel@flake.lan.gerd-stolpmann.de> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX1+9dHPkpGxjymCZAsL8s2mT6+Gfx2/qZ6TLPPm PN5aRGBFxYlEmLUKCpbHxd/5SYvHxZJLAZHbxGeuzAhSE2cOf6 XLI42zrm/OphpZVhZmeMPm/wLjnkAVu X-Spam: no; 0.00; pcre-ocaml:01 ocaml:01 mingw:01 gerd:01 stolpmann:01 gerd:01 donnerstag:01 frisch:01 pcre-ocaml:01 libpcre:01 libpcre:01 usr:01 cflags:01 -mno-cygwin:01 usr:01 Am Donnerstag, den 23.04.2009, 11:30 +0200 schrieb Alain Frisch: > 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? I can confirm this. I also got an error about _ctype_, and could solve this by removing -I /usr/include. Gerd -- ------------------------------------------------------------ Gerd Stolpmann * Viktoriastr. 45 * 64293 Darmstadt * Germany gerd@gerd-stolpmann.de http://www.gerd-stolpmann.de Phone: +49-6151-153855 Fax: +49-6151-997714 ------------------------------------------------------------