statwindow.cc: In member function ‘Gtk::Widget* StatWindow::get_image(Glib::RefPtr<Gtk::IconTheme>, Glib::ustring)’:
statwindow.cc:136: error: no matching function for call to ‘Gtk::IconTheme::load_icon(const char [13], const int&)’
/usr/include/gtkmm-2.4/gtkmm/icontheme.h:336: note: candidates are: Glib::RefPtr<Gdk::Pixbuf> Gtk::IconTheme::load_icon(const Glib::ustring&, int, Gtk::Ico
nLookupFlags) const
statwindow.cc:141: error: no matching function for call to ‘Gtk::IconTheme::load_icon(const char [19], const int&)’
/usr/include/gtkmm-2.4/gtkmm/icontheme.h:336: note: candidates are: Glib::RefPtr<Gdk::Pixbuf> Gtk::IconTheme::load_icon(const Glib::ustring&, int, Gtk::Ico
nLookupFlags) const
statwindow.cc:146: error: no matching function for call to ‘Gtk::IconTheme::load_icon(const char [14], const int&)’
/usr/include/gtkmm-2.4/gtkmm/icontheme.h:336: note: candidates are: Glib::RefPtr<Gdk::Pixbuf> Gtk::IconTheme::load_icon(const Glib::ustring&, int, Gtk::Ico
nLookupFlags) const
gtkmm-2.12.7 is used.
The prototype of load_icon is correct:
Glib::RefPtr<Gdk::Pixbuf> load_icon(const Glib::ustring& icon_name, int size, IconLookupFlags flags = (IconLookupFlags)0) const;
It was implemented in gtkmm since 2.4, it means, there is something wrong with your include files, or in the whole gtkmm.
Try to change the lines (136, 141, 146) from something looks like
pixbuf = iconTheme->load_icon ("weather-few-clouds", DEFAULT_ICON_SIZE);
to
pixbuf = iconTheme->load_icon ("weather-few-clouds", DEFAULT_ICON_SIZE, (Gtk::IconLookupFlags)0);