Hello, The current PoDoFo svn-version 1558 does not work under Mingw-64: PdfParser.cpp uses "%I" (upper-case "i", do not misread as "L") in the scanf format string which seems to be undefined with GCC and completely breaks parsing of PDF files. For example podofouncompress does not work anymore and yields an exception "ePdfError_NoObject".
The following patch seems to fix everything by using the default scanf format string in the #else branch of the #ifdef: > svn diff > Index: PdfParser.cpp > =================================================================== > --- PdfParser.cpp (revision 1558) > +++ PdfParser.cpp (working copy) > @@ -757,7 +757,7 @@ > if( !m_offsets[objID].bParsed ) > { > m_offsets[objID].bParsed = true; > -#ifdef _WIN64 > +#if defined(_WIN64) && defined(_MSC_VER) > sscanf( m_buffer.GetBuffer(), "%10I64d %5ld %c%c%c", > &(m_offsets[objID].lOffset), > &(m_offsets[objID].lGeneration), > &(m_offsets[objID].cUsed), &empty1, &empty2 ); Best regards, Amin
smime.p7s
Description: S/MIME cryptographic signature
------------------------------------------------------------------------------ Get your SQL database under version control now! Version control is standard for application code, but databases havent caught up. So what steps can you take to put your SQL databases under version control? Why should you start doing it? Read more to find out. http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________ Podofo-users mailing list Podofo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/podofo-users