On Mon, 2009-07-13 at 14:00 +0200, Mirco Babin wrote:
> Hi,
>  
> Update, I found out where the JPEG errors came from. 
> In source PdfImage.c before including jpeglib.h insert the following
> lines:
> #ifdef PODOFO_HAVE_JPEG_LIB
> //INSERTED
> #define XMD_H 
> #define HAVE_BOOLEAN
> //END INSERTED

Interesting. Are you able to see if that's OK in VC++ as well? You can
get VC++ Express Edition for free from Microsoft.

What's your reasoning behind setting those flags? Is this something you
think we should be doing on all platforms, just win32, or just
win32/mingw? 

I don't currently have a Windows dev environment and I'm not able to
spend enough time on PoDoFo to want to set one up.


> C:\a\open\PoDoFo\podofo\src\PdfInputDevice.cpp:72: error: no matching
> function for call to `std::basic_ifstream<char, std::char_traits<char>
> >::basic_ifstream(const wchar_t*&, const std::_Ios_Openmode&)'

The STL provided by MinGW is incomplete. One of the missing features is
wchar_t versions of many of the iostreams templates.

These need to be guarded with tests for compilation under MinGW.


( Have I mentioned that I'm coming to really, really loathe C++ - not
the language, but the tools and environments in which the language is
used? I've been doing lots of Java work in my job lately, and while I
really miss RAII, stack-based objects with scope lifetime, and reliable
dtors, I'm loving not having to care about bizarre platform/compiler
quirks, build system pain, and C/C++'s half-assed Unicode non-support
from hell. )

-- 
Craig Ringer


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to