The build with fltk 1.3 fails with:

g++ -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/home/bage/aconnectgui-0.9.0rc2-1.orig=. -fstack-protector-strong -Wformat -Werror=format-security -c -o Client.o Client.cxx
In file included from Client.cxx:1:
Window.hxx:15:7: error: using typedef-name ‘Window’ after ‘class’
   15 | class Window:public Fl_Window
      |       ^~~~~~
In file included from /usr/include/X11/Xlib.h:44,
                 from /usr/include/FL/x.H:37,
                 from /usr/include/FL/fl_draw.H:27,
                 from FrameGroup.hxx:5,
                 from Client.hxx:5,
                 from Port.hxx:6,
                 from Window.hxx:10:
/usr/include/X11/X.h:96:13: note: ‘Window’ has a previous declaration here
   96 | typedef XID Window;
      |             ^~~~~~
Client.cxx: In member function ‘virtual int Clients::handle(int)’:
Client.cxx:162:46: error: request for member ‘GetConnections’ in ‘* patchbay’, which is of non-class type ‘Window’ {aka ‘long unsigned int’}
  162 |         Connections* connections = patchbay->GetConnections();
      |                                              ^~~~~~~~~~~~~~
Client.cxx:164:37: error: request for member ‘IsConnecting’ in ‘* patchbay’, which is of non-class type ‘Window’ {aka ‘long unsigned int’}
  164 |         if (e==FL_PUSH && patchbay->IsConnecting()) {
      |                                     ^~~~~~~~~~~~
Client.cxx:182:63: error: request for member ‘IsLegal’ in ‘* patchbay’, which is of non-class type ‘Window’ {aka ‘long unsigned int’}
  182 |                                                 if 
(patchbay->IsLegal(a,b)) {
      |                                                               ^~~~~~~
Client.cxx:216:50: error: request for member ‘HandleConnect’ in ‘* patchbay’, which is of non-class type ‘Window’ {aka ‘long unsigned int’}
  216 |                                 flag = patchbay->HandleConnect(a,b);
      |                                                  ^~~~~~~~~~~~~
Client.cxx:218:50: error: request for member ‘HandleConnect’ in ‘* patchbay’, which is of non-class type ‘Window’ {aka ‘long unsigned int’}
  218 |                                 flag = patchbay->HandleConnect(b,a);
      |                                                  ^~~~~~~~~~~~~

Reply via email to