GNOME Bugzilla – Bug 628486
Conflicting headers with Qt
Last modified: 2010-09-01 13:29:27 UTC
Qt headers does that: #define signals protected And now gio/gdbusintrospection.h:151 uses "signals" as struct member in a public header. That means that g++ will cry when compiling projects that uses gio and qt together. That happens in telepathy-qt4. It can happen in app code that uses qt together with telepathy-glib, or telepathy-farsight. That API is new in glib 2.25.x and is not yet in any stable glib release, it would be great to rename that struct member.
Note: Qt does the same for "slots"
This is nothing new, and there is an official workaround: http://doc.trolltech.com/4.5/signalsandslots.html#using-qt-with-3rd-party-signals-and-slots
Thanks for the workaround, it is annoying as I had to replace all "foreach" and "emit" too in the code portion that uses gio too. But that's OK. For the reference, the telepathy-qt4 bug was https://bugs.freedesktop.org/show_bug.cgi?id=29930