Re: gtkmm, cairo, and XLib




--- Murray Cumming <murrayc murrayc com> wrote:

> 
> > > And here's another one from gtkmm 2.9:
> > > 
> > > displaymanager.cc: In function
> > >
> >
>
'void<unnamed>::DisplayManager_signal_display_opened_callback(GdkDisplayManager*,
> > > GdkDisplay*, void*)':
> > > displaymanager.cc:43: error: 'Display' was not
> > > declared in this scope
> > > 
> > > Adding a typedef makes the problem clear:
> > > 
> > > displaymanager.cc:31: error: conflicting
> declaration
> > > 'typedef class
> > > Gdk::Display Display'
> > > /usr/include/X11/Xlib.h:519: error: 'Display'
> has a
> > > previous declaration
> > > as 'typedef struct _XDisplay Display'
> > > displaymanager.cc: In function
> > >
> >
>
'void<unnamed>::DisplayManager_signal_display_opened_callback(GdkDisplayManager*,
> > > GdkDisplay*, void*)':
> > 
> > That one's quite different, surely.
> > It's not a bug in Xlib.h.
> 
> A non-prefixed, non-namespaced "Display" symbol in
> Xlib.h is a bug as
> far as I'm concerned.

But Xlib.h has to be compilable as C. And C doesn't
have namespaces.




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