[poppler] Fw: Re: How to define _WIN32 flag?

Hib Eris hib at hiberis.nl
Thu Sep 23 10:10:28 PDT 2010


Hi,

On Thu, Sep 23, 2010 at 6:16 PM, Paul. Z. Wu <zwu_ca at yahoo.com> wrote:
>
>
> --- On Thu, 9/23/10, Paul. Z. Wu <zwu_ca at yahoo.com> wrote:
>
>> From: Paul. Z. Wu <zwu_ca at yahoo.com>
>> Subject: Re: [poppler] How to define _WIN32 flag?
>> To: "Vincent Torri" <vtorri at univ-evry.fr>
>> Date: Thursday, September 23, 2010, 9:14 AM
>> Thanks for your reply -- I tried
>> latest mingw (g++ 4.5) on Windows (XP and 7). But it didn't
>> work out. I had the follow error (it may be not the _WIN32
>> problem). Any tip will be very appreciated.
>>
>>  make[3]: Entering directory
>> `/home/admin/poppler-0.14.3/poppler'
>>   CXX    Annot.lo
>>   CXX    GlobalParams.lo
>> GlobalParams.cc: In function 'char*
>> get_poppler_datadir()':
>> GlobalParams.cc:186:47: error: '_mbsrchr' was not declared
>> in this scope
>> GlobalParams.cc:190:45: error: 'stricmp' was not declared
>> in this scope

Just speculating here, but this might be because poppler claims to be
'ansi', and _mbsrchr might not be ansi according to mingw 4.5. Try to
build with this and see what happens:

make CXXFLAGS=""

Or remove the '-ansi' flag from the poppler/Makefile .

Cheers,

Hib Eris


More information about the poppler mailing list