--- On Thu, 9/23/10, Paul. Z. Wu <[email protected]> wrote:
> From: Paul. Z. Wu <[email protected]> > Subject: Re: [poppler] How to define _WIN32 flag? > To: "Vincent Torri" <[email protected]> > 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 > make[3]: *** [GlobalParams.lo] Error 1 > make[3]: Leaving directory > `/home/admin/poppler-0.14.3/poppler' > make[2]: *** [all] Error 2 > make[2]: Leaving directory > `/home/admin/poppler-0.14.3/poppler' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/admin/poppler-0.14.3' > make: *** [all] Error 2 > > > > > > --- On Wed, 9/22/10, Vincent Torri <[email protected]> > wrote: > > > From: Vincent Torri <[email protected]> > > Subject: Re: [poppler] How to define _WIN32 flag? > > To: "Paul. Z. Wu" <[email protected]> > > Cc: [email protected] > > Date: Wednesday, September 22, 2010, 10:45 PM > > > > > > On Wed, 22 Sep 2010, Paul. Z. Wu wrote: > > > > > > > > Could anyone tell me how to define the flag? I > tried > > > > > > $ sh configure --build=i586-pc-mingw32 > > CXXFLAGS="-D_WIN32 -mwin32" CPPFLAGS="-mwin32 > -D_WIN32" > > CFLAGS="-D_WIN32 -mwin32" > > > > 1) you don't have to define it. i586-pc-mingw32-gcc > and > > i586-pc-mingw32-g++ define it for you. > > 2) it's a preprocessor thing, so if you really want > to > > define it, just add > > it in CPPFLAGS, not in CXXFLAGS and CFLAGS. > > > > So > > > > ./configure --host=i586-pc-mingw32 > > > > shoud work. > > > > Vincent Torri > > > > > > _______________________________________________ poppler mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/poppler
