Compiling regex-posix on Windows

Simon Marlow marlowsd at gmail.com
Fri Mar 26 08:20:56 EDT 2010


On 26/03/2010 12:13, Mikhail Glushenkov wrote:
> Hi,
>
> On Fri, Mar 26, 2010 at 10:25 AM, Simon Marlow<marlowsd at gmail.com>  wrote:
>>
>> The darcs repository is at http://code.haskell.org/regex-posix.  I suggest
>> grabbing that version and using it for the Windows platform build. (don't
>> forget to autoconf!)
>
> No luck with that version either. First it complained about the
> absence of HsRegexPosixConfig.h, and then failed when compiling
> Wrap.hsc (see below). This can be cured by putting MinGW's regex.h and
> libregex.a into $GHC_DIR/mingw/{include, lib}, but then I get the
> aforementioned runtime error when trying to actually use
> Text.Regex.Posix functions.

You don't want to use libregex.a, because as I mentioned before it won't 
be loadable by GHCi.

> Preprocessing library regex-posix-0.94.0...
> Text\Regex\Posix\Wrap.hsc:105:19: regex.h: No such file or directory

Looks like the configure script didn't run, or something of that kind. 
Perhaps you need to put

build-type: Configure

in regex-posix.cabal.

Cheers,
	Simon


More information about the Libraries mailing list