GNOME Bugzilla – Bug 350881
gtkmm build fails
Last modified: 2006-11-23 15:31:34 UTC
When trying to compile gtkmm-2.9.9 or gtkmm-2.9.10, I always get the following error: listviewtext.cc: In member function `Glib::ustring Gtk::ListViewText::get_column_title(unsigned int) const': listviewtext.cc:86: error: parse error before `;' token gtk+ is 2.10.1 glib is 2.12.0 glibmm is 2.11.3
Line 86 seems to be g_return_val_if_fail( column < get_columns().size(), Glib::ustring() ); in Glib::ustring ListViewText::get_column_title(guint column) const { g_return_val_if_fail( column < get_columns().size(), Glib::ustring() ); return get_column(column)->get_title(); } I can't think of any reason why you would see that compile error. What platform/distro/compiler is this?
Please respond.
Closing due to lack of response. Please reopen if this is still a problem.
I'm having the same problem. Platform is Debian Sarge, gcc (GCC) 3.3.5 (Debian 1:3.3.5-13), glib-2.12.4, glibmm-2.12.2, gtk+-2.10.6, trying to build gtkmm-2.10.2 Changing line 86 in listviewtext.cc from: g_return_val_if_fail( column < get_columns().size(), Glib::ustring() ); to g_return_val_if_fail( column < get_columns().size(), Glib::ustring("") ); seems to fix the compilation issue, dunno if that's valid though. It seems to work, that's all I can say ;) HTH, Olivier.
I believe we fixed this in bug #352226, so gtkmm 2.10.4 should build for you. Please reopen if it is still a problem. *** This bug has been marked as a duplicate of 352226 ***