Hi, I have one more question. I tried (on MingW) /configure --disable-shared --enable-static
But when I ran pdftohtml out of the mysys shell, I got "libgcc_s_dw2-1.dll was not found,Re-installing the application may fix this problem". I had to copy the dll and libstdc++-6.dll to the same directory as where pdftohtml.exe resides in to make it work. I wonder why "--enable-static" does not work as I expected? --- On Thu, 9/23/10, Paul. Z. Wu <[email protected]> wrote: > From: Paul. Z. Wu <[email protected]> > Subject: Re: [poppler] Fw: Re: How to define _WIN32 flag? > To: "Hib Eris" <[email protected]> > Cc: [email protected] > Date: Thursday, September 23, 2010, 1:23 PM > This works. Great -- thanks a lot. > > Cheers, > > > --- On Thu, 9/23/10, Hib Eris <[email protected]> > wrote: > > > From: Hib Eris <[email protected]> > > Subject: Re: [poppler] Fw: Re: How to define _WIN32 > flag? > > To: "Paul. Z. Wu" <[email protected]> > > Cc: [email protected] > > Date: Thursday, September 23, 2010, 10:10 AM > > Hi, > > > > On Thu, Sep 23, 2010 at 6:16 PM, Paul. Z. Wu <[email protected]> > > wrote: > > > > > > > > > --- 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 > > > > 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 > > > > > > > _______________________________________________ > poppler mailing list > [email protected] > http://lists.freedesktop.org/mailman/listinfo/poppler > _______________________________________________ poppler mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/poppler
