GNOME Bugzilla – Bug 477041
Unable to build gtk/gtkmm/listviewtext.cc
Last modified: 2010-04-07 13:18:38 UTC
Encountered the following error building gtk/gtkmm/listviewtext.cc on Tru64 UNIX 5.1 with the Compaq V7.1-006 C++ compiler. Same problem encountered with the IRIX C++ compiler, though the Sun, HP/IA, and AIX C++ compilers worked fine: cxx -DHAVE_CONFIG_H -DG_LOG_DOMAIN=\"gtkmm\" -I../../gtk -I../../gtk -I../../pango -I../../pango -I../../atk -I../../atk -I../../gdk -I../../gdk -I../../gtk -I../../gtk -I/opt/TWWfsw/libglib212/include -I/opt/TWWfsw/libglib212/lib/include -I/opt/TWWfsw/libsigc++20/include -I/opt/TWWfsw/libsigc++20/lib/include -I/opt/TWWfsw/libglibmm212/include -I/opt/TWWfsw/libglibmm212/lib/include -I/opt/TWWfsw/gettext014/include -I/opt/TWWfsw/libcairo14/include -I/opt/TWWfsw/libcairomm14/include -I/opt/TWWfsw/fcpackage24/include -I/opt/TWWfsw/libgtk+210/include -I/opt/TWWfsw/libgtk+210/lib/include -I/opt/TWWfsw/libpango116/include -I/opt/TWWfsw/libpango116/include/pango-1.0 -I/opt/TWWfsw/libatk118/include -I/opt/TWWfsw/libttf23/include/freetype2 -I/opt/TWWfsw/libttf23/include -I/opt/TWWfsw/libgtk+210/include/gtk-unix-print -pthread -I/opt/TWWfsw/libglib212/include -I/opt/TWWfsw/libglib212/lib/include -I/opt/TWWfsw/gettext014/include -O2 -arch ev5 -model ansi -version V7.1-006 -msym -readonly_strings -timplicit_local -D__USE_STD_IOSTREAM -c listviewtext.cc -DPIC -o .libs/listviewtext.o cxx: Error: ../../gtk/gtkmm/treeview.h, line 2101: more than one instance of overloaded function "_auto_store_on_cellrenderer_text_edited_string" matches the required type detected during: instantiation of "void Gtk::TreeView_Private::_connect_auto_store_editable_signa l_handler(Gtk::TreeView *, Gtk::CellRenderer *, const Gtk::TreeModelColumn<ColumnType> &) [with ColumnType=Glib::ustring]" at line 1804 instantiation of "int Gtk::TreeView::append_column_editable(const Glib::ustring &, const Gtk::TreeModelColumn<ColumnType> &) [with ColumnType=Glib::ustring]" at line 64 of "listviewtext.cc" type_func func = &(_auto_store_on_cellrenderer_text_edited_string<ColumnType>); ---------------------^ cxx: Info: 1 error detected in the compilation of "listviewtext.cc".
Could you find out what line in listviewtext.cc is triggering this, please?
(In reply to comment #1) > Could you find out what line in listviewtext.cc is triggering this, please? Sorry for the delay. Line #64 is triggering this: append_column_editable(column_title, m_model_columns.m_columns[i]);
Does it help if you change that to append_column_editable<Glib::ustring>(column_title, m_model_columns.m_columns[i]); ?
Please do try that.
Please respond.