[poppler] One more question: static link ("--enable-static")-- Re: Fw: Re: How to define _WIN32 flag?

Paul. Z. Wu zwu_ca at yahoo.com
Fri Sep 24 06:00:08 PDT 2010


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 <zwu_ca at yahoo.com> wrote:

> From: Paul. Z. Wu <zwu_ca at yahoo.com>
> Subject: Re: [poppler] Fw: Re: How to define _WIN32 flag?
> To: "Hib Eris" <hib at hiberis.nl>
> Cc: poppler at lists.freedesktop.org
> Date: Thursday, September 23, 2010, 1:23 PM
> This works. Great -- thanks a lot.
> 
> Cheers,
> 
> 
> --- On Thu, 9/23/10, Hib Eris <hib at hiberis.nl>
> wrote:
> 
> > From: Hib Eris <hib at hiberis.nl>
> > Subject: Re: [poppler] Fw: Re: How to define _WIN32
> flag?
> > To: "Paul. Z. Wu" <zwu_ca at yahoo.com>
> > Cc: poppler at lists.freedesktop.org
> > Date: Thursday, September 23, 2010, 10:10 AM
> > 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
> > 
> 
> 
>       
> 
> _______________________________________________
> poppler mailing list
> poppler at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/poppler
> 


      



More information about the poppler mailing list