Re: [pcre-dev] compile pcre-7.2 on MingW+XP

Góra strony
Delete this message
Autor: Sheri
Data:  
Dla: andy wang, pcre-dev
Temat: Re: [pcre-dev] compile pcre-7.2 on MingW+XP
andy wang wrote:
> Hi, all
>
> In order to compile, a minor change need to be done:
> in pcreposix.h
> ....
> #ifdef _WIN32
> #  ifndef PCREPOSIX_STATIC
> #    define PCREPOSIX_EXP_DECL extern __declspec(dllimport)
> #    define PCREPOSIX_EXP_DEFN  __declspec(dllimport)
> #  endif
> #endif
> .....
> As you can see the DECL is declaration so the "dllimport" is right.
> and DEFN is the definition so it should be "dllexport". So after you
> change that line to
> #    define PCREPOSIX_EXP_DEFN  __declspec(dllexport)
> then the compiling should be ok and you can get the DLL and exe on ".libs".

>
> My Mingw Env:
> MinGW-5.1.3.exe and MSYS-1.0.10.exe
>
> Regards,
> Andy
>
>

Hi Andy,

What is your configure line? Until recent versions I was able to use
--disable-static. Couldn't do that with 7.1 and 7.2. Maybe that's what
your change fixes (ability to disable static with configure and still
make shared dlls).

This is the configure I've been using:

CFLAGS='-O3 -s' ../pcre-7.2/configure --prefix=$PWD/../prefix
--enable-utf8 --enable-newline-is-anycrlf --enable-unicode-properties
--disable-stack-for-recursion

Not seeing any obvious difference if I make the changes you've
suggested. Will try later with --disable-static.

I make the dlls on XP with Mingw; they get loaded by an app I help
design and test, not one I write (not a programmer). The app that loads
the dlls is built in a VC6 environment on Windows 2K.


Regards,
Sheri