Author Topic: rev3645 and wxListImage in wxSmith  (Read 4366 times)

Offline SharkCZ

  • Almost regular
  • **
  • Posts: 134
rev3645 and wxListImage in wxSmith
« on: February 28, 2007, 03:15:30 pm »
Hello,
I needed to include <wx/imaglist.h> in wxSmith/wxsresourcetree.cpp to fix a compile error.

Code
--- src/plugins/contrib/wxSmith/wxsresourcetree.cpp     (revision 3648)
+++ src/plugins/contrib/wxSmith/wxsresourcetree.cpp     (working copy)
@@ -25,6 +25,7 @@
 #include "wxsresourcetreeitemdata.h"
 
 #include <wx/image.h>
+#include <wx/imaglist.h>
 #include <wx/intl.h>
 
 #include "configmanager.h"

C::B rev3645, wxGTK 2.8, Fedora Development

It looks like that in wxMSW imaglist.h is included automaticly via wx.h -> toolbar.h -> tbar95.h
« Last Edit: February 28, 2007, 03:29:43 pm by SharkCZ »
Code::Blocks package maintainer for Fedora and EPEL

Offline byo

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 836
Re: rev3645 and wxListImage in wxSmith
« Reply #1 on: March 01, 2007, 12:43:03 am »
Yup, it's really annoying :( Sometimes even different distributions / compilers (or whatever) require different set of headers.

Fix committed at rev 3654 :)

Thanks for feedback

BYO