-------------- Build: wxPdfDocument in Exporter ---------------
[ 5.6%] Compiling: wxPdfDocument\src\pdfannotation.cpp
C:\Projects\CodeBlocks\src\plugins\contrib\source_exporter\wxPdfDocument\src\pdfannotation.cpp: In constructor `wxPdfLink::wxPdfLink(int)':
C:\Projects\CodeBlocks\src\plugins\contrib\source_exporter\wxPdfDocument\src\pdfannotation.cpp:36: internal compiler error: in rest_of_handle_final, at toplev.c:2067
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.mingw.org/bugs.shtml> for instructions.
Process terminated with status 1 (0 minutes, 1 seconds)
1 errors, 0 warnings
Build log saved as: C:\Projects\CodeBlocks\src\plugins\contrib\source_exporter\Exporter_build_log.html
Where on my linux boxes everything builds fine, my windows laptop (aka the nightly build machine) fails to build, seems rather serious :Welcome to the club...:
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
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 :QuoteC:\CodeBlocks\src\plugins\contrib\source_exporter\wxPdfDocument\src\pdfcolor.cpp:28: error: definition of static data member 'wxPdfColour::ms_colorDatabase' of dllimport'd class
Index: src/plugins/contrib/source_exporter/wxPdfDocument/include/wx/pdfdocdef.h
===================================================================
--- src/plugins/contrib/source_exporter/wxPdfDocument/include/wx/pdfdocdef.h (revision 4397)
+++ src/plugins/contrib/source_exporter/wxPdfDocument/include/wx/pdfdocdef.h (working copy)
@@ -863,7 +863,9 @@
#ifndef _PDFDOC_DEF_H_
#define _PDFDOC_DEF_H_
-#ifdef WXMAKINGDLL_WXPDFDOC
+#ifdef WXMAKINGLIB_WXPDFDOC
+ #define WXDLLIMPEXP_PDFDOC
+#elif WXMAKINGDLL_WXPDFDOC
#define WXDLLIMPEXP_PDFDOC WXEXPORT
#elif defined(WXUSINGDLL)
#define WXDLLIMPEXP_PDFDOC WXIMPORT
Index: src/plugins/contrib/source_exporter/Exporter.cbp
===================================================================
--- src/plugins/contrib/source_exporter/Exporter.cbp (revision 4397)
+++ src/plugins/contrib/source_exporter/Exporter.cbp (working copy)
@@ -56,6 +56,7 @@
<Add option="-DcbDEBUG" />
<Add option="-DTIXML_USE_STL" />
<Add option="-DwxUSE_UNICODE" />
+ <Add option="-DWXMAKINGLIB_WXPDFDOC" />
<Add directory="$(#WX.include)" />
<Add directory="$(#WX.lib)/gcc_dll$(WX_CFG)/msw$(WX_SUFFIX)" />
<Add directory="$(#CB.include)" />
The patch needs tested, I have never used the exporter so I am not a good person to do any testing.Great one! It compiles again... doing now some testing... Thanks!!!