From 7728c3a86dad86cd43403414edce65a9a3f455ce Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 29 Nov 2017 15:27:10 +0100 Subject: [PATCH] Fix linking code using wxDataViewCheckIconText under Unix The class needs to use WXDLLIMPEXP_ADV in order for its (default, compiler-generated) dtor to be generated inside the library, otherwise this doesn't happen and linking code using this class inside a shared library fails with errors due to the dtor being undefined. --- include/wx/dvrenderers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wx/dvrenderers.h b/include/wx/dvrenderers.h index 85a3bd5465..b672b88f51 100644 --- a/include/wx/dvrenderers.h +++ b/include/wx/dvrenderers.h @@ -81,7 +81,7 @@ DECLARE_VARIANT_OBJECT_EXPORTED(wxDataViewIconText, WXDLLIMPEXP_ADV) // wxDataViewCheckIconText: value class used by wxDataViewCheckIconTextRenderer // ---------------------------------------------------------------------------- -class wxDataViewCheckIconText : public wxDataViewIconText +class WXDLLIMPEXP_ADV wxDataViewCheckIconText : public wxDataViewIconText { public: wxDataViewCheckIconText(const wxString& text = wxString(),