mirkobrombin / xfce4-taskbar-plugin

A simple Taskbar for XFCE
GNU General Public License v3.0
9 stars 0 forks source link

A failure occurred in build() | error: template with C linkage #2

Open bnn1 opened 3 years ago

bnn1 commented 3 years ago

This error occurs several times during the building:

In file included from Taskbar.cpp:8:
Taskbar.hpp:10:1: note: ‘extern "C"’ linkage started here
   10 | extern "C"
      | ^~~~~~~~~~
In file included from /usr/include/glib-2.0/glib/gatomic.h:31,
                 from /usr/include/glib-2.0/glib/gthread.h:32,
                 from /usr/include/glib-2.0/glib/gasyncqueue.h:32,
                 from /usr/include/glib-2.0/glib.h:32,
                 from /usr/include/gtk-3.0/gdk/gdkconfig.h:8,
                 from /usr/include/gtk-3.0/gdk/gdk.h:30,
                 from /usr/include/gtk-3.0/gtk/gtk.h:30,
                 from /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/libxfce4panel.h:22,
                 from Taskbar.hpp:12,
                 from Taskbar.cpp:8:
/usr/include/c++/10.2.0/type_traits:124:3: error: template with C linkage

Also this error:

In file included from Taskbar.cpp:8:
Taskbar.hpp:10:1: note: ‘extern "C"’ linkage started here
   10 | extern "C"
      | ^~~~~~~~~~
In file included from /usr/include/glib-2.0/glib/gatomic.h:31,
                 from /usr/include/glib-2.0/glib/gthread.h:32,
                 from /usr/include/glib-2.0/glib/gasyncqueue.h:32,
                 from /usr/include/glib-2.0/glib.h:32,
                 from /usr/include/gtk-3.0/gdk/gdkconfig.h:8,
                 from /usr/include/gtk-3.0/gdk/gdk.h:30,
                 from /usr/include/gtk-3.0/gtk/gtk.h:30,
                 from /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/libxfce4panel.h:22,
                 from Taskbar.hpp:12,
                 from Taskbar.cpp:8:
/usr/include/c++/10.2.0/type_traits:242:3: error: template specialization with C linkage
  242 |   template<>
      |   ^~~~~~~~

Kernel: 5.11.16-arch1-1 Makepkg: 5.2.2 cpp: 10.2.0

Let me know if you need any additional information

phil294 commented 3 years ago

Same issue here, building via AUR on manjaro Linux. It was also reported recently on the aur page by another user. https://aur.archlinux.org/packages/xfce4-taskbar-plugin-git/#comment-801901 In the meantime, you can use the built files from /build and put them to /usr/lib/xfce4/panel/plugins/libtaskbar.so and /usr/share/xfce4/panel/plugins/taskbar.desktop yourself. (Great tool, thanks Mirko. Wish it displayed window labels though, like Windows)