2.5b4 wxbrowser compile error + patch

2007-04-12
2013-04-17
  • bryce berny
    bryce berny
    2007-04-12

    heres a patch for the wxImageList compile error in 2.5 beta 4:
    --- wxbrowser.cpp       2007-04-12 16:15:21.000000000 -0400
    +++ wxbrowser.cpp.upd   2007-04-12 16:14:04.000000000 -0400
    @@ -30,6 +30,7 @@

    #ifndef WX_PRECOMP
    #include "wx/wx.h"
    +#include "wx/imaglist.h"
    #endif

    ////@begin includes

    was getting:
    wxbrowser.cpp: In destructor 'virtual WxBrowser::~WxBrowser()':
    wxbrowser.cpp:121: warning: possible problem detected in invocation of delete operator:
    wxbrowser.cpp:121: warning: invalid use of undefined type 'struct wxImageList'
    /opt/local/include/wx-2.8/wx/generic/listctrl.h:16: warning: forward declaration of 'struct wxImageList'
    wxbrowser.cpp:121: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined.
    wxbrowser.cpp: In member function 'bool WxBrowser::Create(wxWindow*, wxWindowID, const wxString&, const wxPoint&, const wxSize&, long int)':
    wxbrowser.cpp:169: error: invalid use of undefined type 'struct wxImageList'
    /opt/local/include/wx-2.8/wx/generic/listctrl.h:16: error: forward declaration of 'struct wxImageList'
    wxbrowser.cpp:173: error: invalid use of undefined type 'struct wxImageList'
    /opt/local/include/wx-2.8/wx/generic/listctrl.h:16: error: forward declaration of 'struct wxImageList'
    wxbrowser.cpp:174: error: invalid use of undefined type 'struct wxImageList'
    /opt/local/include/wx-2.8/wx/generic/listctrl.h:16: error: forward declaration of 'struct wxImageList'
    wxbrowser.cpp:175: error: invalid use of undefined type 'struct wxImageList'
    /opt/local/include/wx-2.8/wx/generic/listctrl.h:16: error: forward declaration of 'struct wxImageList'
    wxbrowser.cpp:177: error: 'wxIMAGE_LIST_SMALL' was not declared in this scope
    make[1]: *** [wxbrowser.o] Error 1
    make: *** [all] Error 2