Hi Craig, take a look at this:
http://carcino.gen.nz/tech/win/include_winsock2_header_file_first.php Greets, Patrik Craig Ringer schrieb: > On Mon, 2009-07-27 at 08:17 +0200, [email protected] wrote: >> Hi, >> >> I've got several problems compiling the last trunk with VC2005: >> >> 1) I had to modifiy PDFFontMetrics.ccp >> >> #ifdef _WIN32 >> #include <winsock2.h> >> #include <windows.h> >> #endif >> >> If I don't include <winsock2.h> before <windows.h> I got a lot of definition >> errors. windows.h includes the old winsock.h - so the compiler complains >> about redefinitions from winsock and winsock2. > > Ugh. > > So it's necessary to include <winsock2.h> before <windows.h> if we're > going to include <winsock2.h> at all? > > No problem. It's looking more and more like we'll have to include > <windows.h> in PdfCompilerCompat.h once it's split into a public part > (for PoDoFo library users) and a private part (for building PoDoFo its > self). > >> 2) PDFMutex.cpp >> >> error C3861: "TryEnterCriticalSection >> >> I see the windows version in PDFMutex.h - anyone has an idea? > > I'll have a look and get back to you. > ------------------------------------------------------------------------------ _______________________________________________ Podofo-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/podofo-users
