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

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: David Allsopp <dra-news@m...>
Subject: RE: [Caml-list] Building pcre-ocaml on OCaml 3.11.0 on MinGW
> 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.

Marvellous - I'll have a play when I have a spare minute <sigh>

> 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 last built with 5.15.1 which didn't have this line (just -mno-cygwin) but
I see that I'm behind (and Gerd's confirmed the problem, anyhow...)


David