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 118868 - gcc 2.95.3 fail to compile TreeView.append_column_editable("foo", TreeModelColumn<bool>)
gcc 2.95.3 fail to compile TreeView.append_column_editable("foo", TreeModelCo...
Status: RESOLVED FIXED
Product: gtkmm
Classification: Bindings
Component: general
2.2
Other All
: Normal normal
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2003-08-01 11:49 UTC by Frank Naumann
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch for the gcc 2.95.x build problem (553 bytes, patch)
2003-08-04 12:21 UTC, Frank Naumann
none Details | Review
Patch for the gcc 2.95.x build problem with ChangeLog entry. (1.40 KB, patch)
2003-08-05 11:43 UTC, Frank Naumann
none Details | Review

Description Frank Naumann 2003-08-01 11:49:52 UTC
gcc 2.95.3 fail to compile
examples/book/treeview/editable_cells/examplewindow.cc

on the following line:

> m_TreeView.append_column_editable("foo", m_Columns.m_col_foo);

I don't know what's the problem. It happens on
examples/book/treeview/drag_and_drop/examplewindow.cc too.

The compiler error message:

../../../../gtk/gtkmm/treeviewcolumn.h: In method `void
Gtk::TreeViewColumn::pack_start<bool>(const Gtk::TreeModelColumn<bool> &,
bool = true)':
../../../../gtk/gtkmm/treeviewcolumn.h:606:   instantiated from
`Gtk::TreeViewColumn::TreeViewColumn<bool>(const Glib::ustring &, const
Gtk::TreeModelColumn<bool> &)'
../../../../gtk/gtkmm/treeview.h:957:   instantiated from here
../../../../gtk/gtkmm/treeviewcolumn.h:100: too few arguments to function
`class Gtk::CellRenderer *
Gtk::TreeViewColumn_CellRendererGeneration::generate_cellrenderer<bool>(bool)'
../../../../gtk/gtkmm/treeviewcolumn.h:580: at this point in file
gmake: *** [examplewindow.o] Error 1
Comment 1 Murray Cumming 2003-08-01 15:57:42 UTC
Is this version of gcc 2.95.3 built from source or packaged somehow?
Comment 2 Frank Naumann 2003-08-01 16:15:14 UTC
It's the NetBSD system compiler distributed with the 1.6 stable release.
Comment 3 Cedric Gustin 2003-08-04 11:30:40 UTC
Looks like gcc-2.95.x does not like the declarations of the 
generate_cellrenderer specializations that I added a few weeks ago to 
fix bug #113688 (http://bugzilla.gnome.org/show_bug.cgi?id=113688) 
with gcc-3.2 on debian and win32.
Comment 4 Murray Cumming 2003-08-04 11:46:02 UTC
I can not make any sense of the compiler error. If it really doesn't
work then someone needs to add an #ifdef, maybe using a configure check.
Comment 5 Murray Cumming 2003-08-04 11:56:41 UTC
And we might choose to put the #ifdef in the examples instead of gtkmm
itself.
Comment 6 Frank Naumann 2003-08-04 12:21:56 UTC
Created attachment 18892 [details] [review]
Patch for the gcc 2.95.x build problem
Comment 7 Murray Cumming 2003-08-04 14:33:10 UTC
Your patch says
  +#if !defined(__GNUC__) || __GNUC__ > 2
but isn't gcc 3 also > 2?
Comment 8 Frank Naumann 2003-08-04 15:13:01 UTC
Yes, this means the code is included if we don't compile with gcc or
the gcc version we use is greater 2 (e.g. it's at least gcc 3.0.0).

Or with other words: the code is excluded if we compile with gcc 2.95.x.
Comment 9 Murray Cumming 2003-08-04 15:42:56 UTC
Oh, right, now I understand. Let's consider it. But it should have a
comment. Patches should patch the ChangeLog. Thanks.
Comment 10 Murray Cumming 2003-08-05 08:08:03 UTC
Could you please confirm that you can see the radio buttons for bool
TreeView columns when using this patch? For instance, in the demo.
Comment 11 Frank Naumann 2003-08-05 09:42:18 UTC
Yes!
Comment 12 Frank Naumann 2003-08-05 11:43:09 UTC
Created attachment 18921 [details] [review]
Patch for the gcc 2.95.x build problem with ChangeLog entry.
Comment 13 Murray Cumming 2003-08-05 12:03:31 UTC
Perfect. Someone please apply to both branches.
Comment 14 Murray Cumming 2003-08-20 10:29:15 UTC
Applied. Well done and thanks.