Where on my linux boxes everything builds fine, my windows laptop (aka the nightly build machine) fails to build, seems rather serious :
Quote
-------------- 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
All ideas are welcome ....
1. Try another GCC version.
2. Try different compilation flags.
3. Downgrade to a previous version of wxPdfDocument.
Quote from: killerbot on August 15, 2007, 09:56:21 PM
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...:
http://forums.next.codeblocks.org/index.php/topic,6656.msg51511.html#msg51511
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
Was wxPDFDoc just upgraded to 8.0 in the last few days?
Yes, it looks like it was, it has the same problem as wxPropertyGrid had. Working on patch to get it to compile and link.
Tim S
Quote from: killerbot on August 15, 2007, 11:53:06 PM
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
I faced both the errors you reported. :(
Patch to fix issue in windows, you most likely will need to add WXMAKINGLIB_WXPDFDOC to Linux and Mac builds.
Tim S
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.
After testing the patch to wxPdfDocument's pdfdocdef.h needs submitted upstream.
CB Goal is to use wxPdfDocument as Static Library inside an CB Plugin DLL.
Problem is that CB defines WXUSINGDLL.
Solution add WXMAKINGLIB_WXPDFDOC define to select Static Library build.
Tim S
Quote from: stahta01 on August 16, 2007, 05:17:52 AM
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!!!