After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 350881 - gtkmm build fails
gtkmm build fails
Status: RESOLVED DUPLICATE of bug 352226
Product: gtkmm
Classification: Bindings
Component: build
2.9.x
Other Linux
: Normal normal
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2006-08-11 12:44 UTC by Marcus Klemm
Modified: 2006-11-23 15:31 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Marcus Klemm 2006-08-11 12:44:57 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
Comment 1 Murray Cumming 2006-08-13 14:09:06 UTC
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?
Comment 2 Murray Cumming 2006-09-19 20:21:14 UTC
Please respond.
Comment 3 Murray Cumming 2006-10-11 10:15:24 UTC
Closing due to lack of response. Please reopen if this is still a problem.
Comment 4 Olivier Fourdan 2006-11-03 10:37:25 UTC
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.
Comment 5 Murray Cumming 2006-11-23 15:31:34 UTC
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 ***