Hi all,
finally I got the actual trunk compiled on VS 2003 (and VS 2005 too).
1.) Missing identifier "TryEnterCriticalSection"
I just added the needed define _WIN32_WINNT 0x0400 to podofo_config.h.
This probably not the right place, but maybe someone knows why the define
PdfCompilerCompatPrivate.h didn't work...
2.) Definition errors 1 -> I removed the following stuff from
a) PdfString
PdfString::PdfString( const wchar_t* pszString )
: m_bHex( false ), m_bUnicode( true ), m_pEncoding( NULL )
b) PfdFontMetrics
double StringWidth( const wchar_t* pszText, unsigned int nLength = 0 ) const;
unsigned long StringWidthMM( const wchar_t* pszText, unsigned int nLength = 0 )
const;
Does anyone need this methods? Could the trunk code can be adapted?
3.) Include order issues: windows.h before winsock2.h
PdfFiltersPrivate.h includes "jpeglib.h" when set.
This header again includes jconfig.h which includes windows.h.
To fix this I included in PdfFiltersPrivate.h:
#ifdef _WIN32
#include <winsock2.h>
#include <windows.h>
#endif
Could we put this in a more central place?
Regards
Sebastian
-----Ursprüngliche Nachricht-----
Von: EXTERNAL Loch Sebastian (Firma Ferchau; BhP/TEF17)
[mailto:[email protected]]
Gesendet: Dienstag, 13. Oktober 2009 13:36
An: Craig Ringer
Cc: [email protected]
Betreff: Re: [Podofo-users] Missing TryEnterCriticalSection
Hi Craig,
> I try to compile the actual trunk with VS2005 or VS2003
> and I got the following problems:
>
> 1.) PdfXObject.cpp
> s:\vsprojects\podofo\vs2005\src\util\PdfMutexImpl_win32.h(86) : error C3861:
> "TryEnterCriticalSection":
... where's the rest of the error mesage?
--> Bezeichner nicht gefunden. - Identifier not found.
If I use define _WIN32_WINNT 0x0400 in podofo_config.h the error is gone,
but it should work anyways, see define in PdfCompilerCompatPrivate.h.
> 2.) PdfFiltersPrivate.cpp
> C:\Program Files\Microsoft Visual Studio
> 8\VC\PlatformSDK\include\winsock2.h(112) : error C2011: 'fd_set':
> 'struct'
> -> I got here a bunch of definition errors...
>Please always quote FULL and EXACT error message text. Truncated and
>incomplete errors are useless, especially when you're asking for help
>with a compiler few people here (or at least few who actually try to
>help out on the list) have access to.
Next time I will try to translate more.
>Presumably, in your case, one of the two macros will trigger a #error,
>since you're having include order issues.
>If it's the the first one, then you just need to track down where the
>rogue inclusion of <windows.h> is coming from. At no point do
>PdfDefines.h or PdfCompilerCompat.h include <windows.h> and they're the
>only headers included before PdfDefinesPrivate.h and in turn
>PdfCompilerCompatPrivate.h, so I'm not really sure how it could be
>getting included. The PoDoFo sources don't include <windows.h> anywhere
>except PdfCompilerCompatPrivate.h.
>I'd bet it's the second one, and probably because PODOFO_HAVE_WINSOCK2_H
>won't be set, probably because of some problem with the build scripts or
>a modification to them. If that's the case you need to look at
>podofo_config.h and your CMakeCache.txt, or provide me with enough
>information to actually do more than vague guesswork.
Wrong bet ;-)) It's the first one, windows.h is included before winsock2.
>Anyway, I'm going to go do something more fun and productive now.
Have fun!
Bye
Sebastian
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users