I tried to build with the latest MinGW (4.2.1, the dw2 version) [man things slow down because of all those warnings ....] and pdfannotation.cpp builds, but now there's an error on pdfcolor.cpp (line 28) [I think I have had this in the past also, but then a rebuild fixed it, or maybe deleting pch's dunno anymore, but this time I started from a clean state]
So this is now the error :
C:\CodeBlocks\src\plugins\contrib\source_exporter\wxPdfDocument\src\pdfcolor.cpp:28: error: definition of static data member 'wxPdfColour::ms_colorDatabase' of dllimport'd class