Patch to fix the error; not tested much; not ready to be applied to trunk or branch.
Only tested on XML compiler branch.
This is a work around; NOT a valid fix because headers added in the wrong spot; but it works OK on XML compiler branch.
Tim S.
Patch I applied to get CB to compile with wxWidgets 2.9 trunk; not sure if the patch is the best solution.
Turns out that in wxWidgets 2.9 the header wx/xrc/xmlres.h no longer includes two other headers as a side effect.
These being "wx/xml/xml.h" and "wx/control.h" (the control.h is via the header wx/animate.h included by xmlres.h ).
Tim S.
Index: src/plugins/contrib/wxContribItems/KWIC/include/wx/xrc/xh_kwxangularregulatorhandler.h
===================================================================
--- src/plugins/contrib/wxContribItems/KWIC/include/wx/xrc/xh_kwxangularregulatorhandler.h (revision 8587)
+++ src/plugins/contrib/wxContribItems/KWIC/include/wx/xrc/xh_kwxangularregulatorhandler.h (working copy)
@@ -25,6 +25,7 @@
#ifndef XH_KWXANGULAREGULATORHANDLER_H_INCLUDED
#define XH_KWXANGULAREGULATORHANDLER_H_INCLUDED
+#include <wx/control.h>
#include <wx/xrc/xmlres.h>
class kwxAngularRegulatorHandler : public wxXmlResourceHandler
Index: src/plugins/contrib/wxContribItems/KWIC/include/wx/xrc/xh_kwxlinearregulatorhandler.h
===================================================================
--- src/plugins/contrib/wxContribItems/KWIC/include/wx/xrc/xh_kwxlinearregulatorhandler.h (revision 8587)
+++ src/plugins/contrib/wxContribItems/KWIC/include/wx/xrc/xh_kwxlinearregulatorhandler.h (working copy)
@@ -25,6 +25,7 @@
#ifndef XH_KWXLINEAREGULATORHANDLER_H_INCLUDED
#define XH_KWXLINEAREGULATORHANDLER_H_INCLUDED
+#include <wx/control.h>
#include <wx/xrc/xmlres.h>
class kwxLinearRegulatorHandler : public wxXmlResourceHandler
Index: src/include/sdk_common.h
===================================================================
--- src/include/sdk_common.h (revision 8587)
+++ src/include/sdk_common.h (working copy)
@@ -96,6 +96,7 @@
#include <wx/utils.h>
#include <wx/wfstream.h>
#include <wx/wxscintilla.h>
+ #include <wx/xml/xml.h>
#include <wx/xrc/xmlres.h>
// basic headers