GNOME Bugzilla – Bug 142516
libglademm won't compile with gcc 3.4
Last modified: 2011-01-16 23:33:32 UTC
All the library files compile fine, but when it gets to the derived example, I get this: ../../libglade/libglademm/xml.h: In member function `T_Widget* Gnome::Glade::Xml::get_widget_derived(const Glib::ustring&, T_Widget*&) [with T_Widget = DerivedDialog]': main.cc:42: instantiated from here ../../libglade/libglademm/xml.h:248: error: no matching function for call to `wrap(GtkDialog*&)' /usr/include/glibmm-2.4/glibmm/wrap.h:55: note: candidates are: Glib::RefPtr<Glib::Object> Glib::wrap(GObject*, bool) /usr/include/glibmm-2.4/glibmm/main.h:438: note: Glib::RefPtr<Glib::MainContext> Glib::wrap(GMainContext*, bool) /usr/include/glibmm-2.4/glibmm/main.h:496: note: Glib::RefPtr<Glib::MainLoop> Glib::wrap(GMainLoop*, bool) /usr/include/glibmm-2.4/glibmm/iochannel.h:558: note: Glib::RefPtr<Glib::IOChannel> Glib::wrap(GIOChannel*, bool) /usr/include/glibmm-2.4/glibmm/thread.h:333: note: Glib::Thread* Glib::wrap(GThread*) /usr/include/pangomm-1.4/pangomm/fontdescription.h:512: note: Pango::FontDescription Glib::wrap(PangoFontDescription*, bool) /usr/include/pangomm-1.4/pangomm/fontmetrics.h:141: note: Pango::FontMetrics Glib::wrap(PangoFontMetrics*, bool) /usr/include/pangomm-1.4/pangomm/language.h:234: note: Pango::Language Glib::wrap(PangoLanguage*, bool) /usr/include/pangomm-1.4/pangomm/rectangle.h:155: note: Pango::Rectangle& Glib::wrap(PangoRectangle*) /usr/include/pangomm-1.4/pangomm/rectangle.h:158: note: const Pango::Rectangle& Glib::wrap(const PangoRectangle*) /usr/include/pangomm-1.4/pangomm/glyph.h:202: note: Pango::GlyphInfo& Glib::wrap(PangoGlyphInfo*) /usr/include/pangomm-1.4/pangomm/glyph.h:205: note: const Pango::GlyphInfo& Glib::wrap(const PangoGlyphInfo*) /usr/include/pangomm-1.4/pangomm/glyph.h:208: note: Pango::GlyphGeometry& Glib::wrap(PangoGlyphGeometry*) /usr/include/pangomm-1.4/pangomm/glyph.h:211: note: const Pango::GlyphGeometry& Glib::wrap(const PangoGlyphGeometry*) /usr/include/pangomm-1.4/pangomm/coverage.h:164: note: Glib::RefPtr<Pango::Coverage> Glib::wrap(PangoCoverage*, bool) /usr/include/pangomm-1.4/pangomm/font.h:189: note: Glib::RefPtr<Pango::Font> Glib::wrap(PangoFont*, bool) /usr/include/pangomm-1.4/pangomm/fontset.h:149: note: Glib::RefPtr<Pango::Fontset> Glib::wrap(PangoFontset*, bool) /usr/include/pangomm-1.4/pangomm/fontface.h:146: note: Glib::RefPtr<Pango::FontFace> Glib::wrap(PangoFontFace*, bool) /usr/include/pangomm-1.4/pangomm/fontfamily.h:166: note: Glib::RefPtr<Pango::FontFamily> Glib::wrap(PangoFontFamily*, bool) /usr/include/pangomm-1.4/pangomm/fontmap.h:148: note: Glib::RefPtr<Pango::FontMap> Glib::wrap(PangoFontMap*, bool) /usr/include/pangomm-1.4/pangomm/color.h:117: note: Pango::Color& Glib::wrap(PangoColor*) /usr/include/pangomm-1.4/pangomm/color.h:123: note: const Pango::Color& Glib::wrap(const PangoColor*) /usr/include/pangomm-1.4/pangomm/attributes.h:639: note: Pango::Attribute Glib::wrap(PangoAttribute*, bool) /usr/include/pangomm-1.4/pangomm/attributes.h:642: note: Pango::AttrString Glib::wrap(PangoAttrString*, bool) /usr/include/pangomm-1.4/pangomm/attributes.h:645: note: Pango::AttrLanguage Glib::wrap(PangoAttrLanguage*, bool) /usr/include/pangomm-1.4/pangomm/attributes.h:648: note: Pango::AttrColor Glib::wrap(PangoAttrColor*, bool) /usr/include/pangomm-1.4/pangomm/attributes.h:651: note: Pango::AttrInt Glib::wrap(PangoAttrInt*, bool) /usr/include/pangomm-1.4/pangomm/attributes.h:654: note: Pango::AttrFloat Glib::wrap(PangoAttrFloat*, bool) /usr/include/pangomm-1.4/pangomm/attributes.h:657: note: Pango::AttrFontDesc Glib::wrap(PangoAttrFontDesc*, bool) /usr/include/pangomm-1.4/pangomm/attributes.h:660: note: Pango::AttrShape Glib::wrap(PangoAttrShape*, bool) /usr/include/pangomm-1.4/pangomm/item.h:213: note: Pango::Analysis& Glib::wrap(PangoAnalysis*) /usr/include/pangomm-1.4/pangomm/item.h:216: note: const Pango::Analysis& Glib::wrap(const PangoAnalysis*) /usr/include/pangomm-1.4/pangomm/item.h:219: note: Pango::Item Glib::wrap(PangoItem*, bool) /usr/include/pangomm-1.4/pangomm/attriter.h:141: note: Pango::AttrIter Glib::wrap(PangoAttrIterator*, bool) /usr/include/pangomm-1.4/pangomm/attrlist.h:171: note: Pango::AttrList Glib::wrap(PangoAttrList*, bool) /usr/include/pangomm-1.4/pangomm/context.h:311: note: Glib::RefPtr<Pango::Context> Glib::wrap(PangoContext*, bool) /usr/include/pangomm-1.4/pangomm/tabarray.h:184: note: Pango::TabArray Glib::wrap(PangoTabArray*, bool) /usr/include/pangomm-1.4/pangomm/layoutline.h:210: note: Glib::RefPtr<Pango::LayoutLine> Glib::wrap(PangoLayoutLine*, bool) /usr/include/pangomm-1.4/pangomm/layoutrun.h:83: note: Pango::LayoutRun& Glib::wrap(PangoLayoutRun*) /usr/include/pangomm-1.4/pangomm/layoutrun.h:86: note: const Pango::LayoutRun& Glib::wrap(const PangoLayoutRun*) /usr/include/pangomm-1.4/pangomm/layout.h:625: note: Glib::RefPtr<Pango::Layout> Glib::wrap(PangoLayout*, bool) /usr/include/atkmm-1.6/atkmm/component.h:326: note: Glib::RefPtr<Atk::Component> Glib::wrap(AtkComponent*, bool) /usr/include/atkmm-1.6/atkmm/relation.h:177: note: Glib::RefPtr<Atk::Relation> Glib::wrap(AtkRelation*, bool) /usr/include/atkmm-1.6/atkmm/object.h:513: note: Glib::RefPtr<Atk::Object> Glib::wrap(AtkObject*, bool) /usr/include/atkmm-1.6/atkmm/implementor.h:122: note: Glib::RefPtr<Atk::Implementor> Glib::wrap(AtkImplementor*, bool) /usr/include/pangomm-1.4/pangomm/glyphstring.h:212: note: Pango::GlyphString Glib::wrap(PangoGlyphString*, bool) /usr/include/gdkmm-2.4/gdkmm/types.h:361: note: Gdk::Point& Glib::wrap(GdkPoint*) /usr/include/gdkmm-2.4/gdkmm/types.h:364: note: const Gdk::Point& Glib::wrap(const GdkPoint*) /usr/include/gdkmm-2.4/gdkmm/rectangle.h:96: note: Gdk::Rectangle& Glib::wrap(GdkRectangle*) /usr/include/gdkmm-2.4/gdkmm/rectangle.h:102: note: const Gdk::Rectangle& Glib::wrap(const GdkRectangle*) /usr/include/gdkmm-2.4/gdkmm/region.h:229: note: Gdk::Region Glib::wrap(GdkRegion*, bool) /usr/include/gdkmm-2.4/gdkmm/screen.h:418: note: Glib::RefPtr<Gdk::Screen> Glib::wrap(GdkScreen*, bool) /usr/include/gdkmm-2.4/gdkmm/gc.h:521: note: Glib::RefPtr<Gdk::GC> Glib::wrap(GdkGC*, bool) /usr/include/gdkmm-2.4/gdkmm/visual.h:248: note: Glib::RefPtr<Gdk::Visual> Glib::wrap(GdkVisual*, bool) /usr/include/gdkmm-2.4/gdkmm/color.h:263: note: Gdk::Color Glib::wrap(GdkColor*, bool) /usr/include/gdkmm-2.4/gdkmm/colormap.h:222: note: Glib::RefPtr<Gdk::Colormap> Glib::wrap(GdkColormap*, bool) /usr/include/gdkmm-2.4/gdkmm/image.h:226: note: Glib::RefPtr<Gdk::Image> Glib::wrap(GdkImage*, bool) /usr/include/gdkmm-2.4/gdkmm/drawable.h:578: note: Glib::RefPtr<Gdk::Drawable> Glib::wrap(GdkDrawable*, bool) /usr/include/gdkmm-2.4/gdkmm/pixmap.h:197: note: Glib::RefPtr<Gdk::Pixmap> Glib::wrap(GdkPixmapObject*, bool) /usr/include/gdkmm-2.4/gdkmm/window.h:1846: note: Glib::RefPtr<Gdk::Window> Glib::wrap(GdkWindowObject*, bool) /usr/include/gdkmm-2.4/gdkmm/event.h:386: note: Gdk::Event Glib::wrap(GdkEvent*, bool) /usr/include/gdkmm-2.4/gdkmm/pixbuf.h:576: note: Glib::RefPtr<Gdk::Pixbuf> Glib::wrap(GdkPixbuf*, bool) /usr/include/gdkmm-2.4/gdkmm/dragcontext.h:364: note: Glib::RefPtr<Gdk::DragContext> Glib::wrap(GdkDragContext*, bool) /usr/include/gdkmm-2.4/gdkmm/device.h:249: note: Glib::RefPtr<Gdk::Device> Glib::wrap(GdkDevice*, bool) /usr/include/gdkmm-2.4/gdkmm/display.h:593: note: Glib::RefPtr<Gdk::Display> Glib::wrap(GdkDisplay*, bool) /usr/include/gtkmm-2.4/gtkmm/targetlist.h:92: note: Glib::RefPtr<Gtk::TargetList> Glib::wrap(GtkTargetList*, bool) /usr/include/gtkmm-2.4/gtkmm/object.h:161: note: Gtk::Object* Glib::wrap(GtkObject*, bool) /usr/include/gtkmm-2.4/gtkmm/iconsource.h:277: note: Gtk::IconSource Glib::wrap(GtkIconSource*, bool) /usr/include/gtkmm-2.4/gtkmm/iconset.h:176: note: Gtk::IconSet Glib::wrap(GtkIconSet*, bool) /usr/include/gtkmm-2.4/gtkmm/style.h:775: note: Glib::RefPtr<Gtk::Style> Glib::wrap(GtkStyle*, bool) /usr/include/gtkmm-2.4/gtkmm/rc.h:347: note: Glib::RefPtr<Gtk::RcStyle> Glib::wrap(GtkRcStyle*, bool) /usr/include/gtkmm-2.4/gtkmm/selectiondata.h:175: note: Gtk::SelectionData Glib::wrap(GtkSelectionData*, bool) /usr/include/gtkmm-2.4/gtkmm/clipboard.h:353: note: Glib::RefPtr<Gtk::Clipboard> Glib::wrap(GtkClipboard*, bool) /usr/include/gtkmm-2.4/gtkmm/widget.h:2508: note: Gtk::Widget* Glib::wrap(GtkWidget*, bool) /usr/include/gtkmm-2.4/gtkmm/container.h:428: note: Gtk::Container* Glib::wrap(GtkContainer*, bool)
Created attachment 27687 [details] [review] Patch to fix this problem I figured out the problem, but this doesn't seem like it should be this simple. Someone in #c++ suggested some namespace polluting is going on. Not sure. I hope this patch helps figure this out.
This does not seem completely unreasonable. Please commit the fix.
This patch has been committed: 2004-06-02 Bryan Forbes <bryan@reigndropsfall.net> * examples/derived/deriveddialog.h: fix to compile with gcc 3.4.0.