wxMSW-2.9.x Patch needed on dataview with Shared Builds

Tim Stahlhut stahta01 at verizon.net
Thu Nov 1 15:10:27 PDT 2007


FYI:

The dataview sample fails to build under Windows using MinGW GCC on
Shared Builds. Link Isssue with wxWidgets.

Tim S


Patch below

Index: include/wx/dataview.h
===================================================================
--- include/wx/dataview.h	(revision 49573)
+++ include/wx/dataview.h	(working copy)
@@ -718,7 +718,7 @@
 // wxDataViewSpinRenderer
 // -------------------------------------
 
-class wxDataViewSpinRenderer: public wxDataViewCustomRenderer
+class WXDLLIMPEXP_ADV wxDataViewSpinRenderer: public wxDataViewCustomRenderer
 {
 public:
     wxDataViewSpinRenderer( int min, int max,
Index: include/wx/generic/dataview.h
===================================================================
--- include/wx/generic/dataview.h	(revision 49573)
+++ include/wx/generic/dataview.h	(working copy)
@@ -345,7 +345,8 @@
 // wxDataViewCtrl
 // ---------------------------------------------------------
 
-WX_DECLARE_LIST(wxDataViewColumn, wxDataViewColumnList );
+WX_DECLARE_LIST_WITH_DECL(wxDataViewColumn, wxDataViewColumnList,
+                          class WXDLLIMPEXP_ADV);
 
 class WXDLLIMPEXP_ADV wxDataViewCtrl: public wxDataViewCtrlBase,
                                        public wxScrollHelperNative






More information about the wx-dev mailing list