Re: Stable glibmm and gtkmm releases soon



2013-03-26 16:17, José Alburquerque skrev:
On Tue, 2013-03-26 at 12:23 +0100, Murray Cumming wrote:
I have also noticed that the new wrapping of GTlsError breaks the gtkmm
build because the EOF enum value clashes with some macro somewhere:

In file included from /opt/gnome/include/giomm-2.4/giomm/file.h:43:0,

from /opt/gnome/include/giomm-2.4/giomm/applicationcommandline.h:27,

from /opt/gnome/include/giomm-2.4/giomm/application.h:32,
                  from ../gtkmm/application.h:33,
                  from ../gtkmm/window.h:32,
                  from ../gtkmm/dialog.h:30,
                  from ../gtkmm/aboutdialog.h:33,
                  from aboutdialog.cc:6:
/opt/gnome/include/giomm-2.4/giomm/error.h:281:5: error: expected
identifier before '(' token
I think this commit fixes that:
https://git.gnome.org/browse/glibmm/commit/?id=3bb2217bed5b0f3c90cb1be319dff82e0c580f98

stdio.h contains

# define EOF (-1)

which explains why the compiler says it expected identifier before '('. It sees (-1) instead of EOF, if stdio.h has been included before giomm/error.h.

Kjell


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]