I have found an compile bug/design changed issue caused by wxWidgets 2.9.5
Example Compiler Error
src\plugins\contrib\wxContribItems\wxchart\src\legendwindow.cpp|34|error: no 'wxObject* wxLegendWindow::wxCreateObject()' member function declared in class 'wxLegendWindow'|
Reason seems to be the use of wxWidgets Macro DECLARE_CLASS when the correct Macro is DECLARE_DYNAMIC_CLASS in the header file.
It is needed if IMPLEMENT_DYNAMIC_CLASS is used in the source file.
Can an C++ and wxWidgets expect confirm this is correct?
Patch below; it compiles with wxWidgets 2.9.5; but, no other testing has been done.
Index: src/plugins/contrib/wxContribItems/wxchart/include/wx/yaxiswindow.h
===================================================================
--- src/plugins/contrib/wxContribItems/wxchart/include/wx/yaxiswindow.h (revision 9266)
+++ src/plugins/contrib/wxContribItems/wxchart/include/wx/yaxiswindow.h (working copy)
@@ -86,7 +86,7 @@
void OnPaint(wxPaintEvent &event);
void OnMouse(wxMouseEvent &event);
- DECLARE_CLASS(wxYAxisWindow)
+ DECLARE_DYNAMIC_CLASS(wxYAxisWindow)
DECLARE_EVENT_TABLE()
};
Index: src/plugins/contrib/wxContribItems/wxchart/include/wx/legendwindow.h
===================================================================
--- src/plugins/contrib/wxContribItems/wxchart/include/wx/legendwindow.h (revision 9266)
+++ src/plugins/contrib/wxContribItems/wxchart/include/wx/legendwindow.h (working copy)
@@ -67,7 +67,7 @@
void OnMouse(wxMouseEvent &event);
void OnMouseMove(wxMouseEvent &event);
- DECLARE_CLASS(wxLegendWindow)
+ DECLARE_DYNAMIC_CLASS(wxLegendWindow);
DECLARE_EVENT_TABLE()
};
Tim S.