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

Página superior
Eliminar este mensaje
Autor: andy wang
Fecha:  
A: pcre-dev
Asunto: Re: [pcre-dev] compile pcre-7.2 on MingW+XP
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