F1ash / qt-virt-manager

Qt Virtual machines manager
http://f1ash.github.io/qt-virt-manager
GNU General Public License v2.0
233 stars 71 forks source link

/usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/type_traits: error: template with C linkage #51

Closed perfect7gentleman closed 3 years ago

perfect7gentleman commented 3 years ago

Gentoo, Qt-5.15.3, GCC-11.1

In file included from /tmp/portage/app-emulation/qt-virt-manager-0.72.97/work/qt-virt-manager-0.72.97/src/vm_viewer/qspice_widgets/qspice-smartcard-channel.cpp:2:
/tmp/portage/app-emulation/qt-virt-manager-0.72.97/work/qt-virt-manager-0.72.97/src/vm_viewer/qspice_widgets/qspice-helper.h:26:1: note: ‘extern "C"’ linkage started here
   26 | 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/spice-client-glib-2.0/spice-client.h:21,
                 from /tmp/portage/app-emulation/qt-virt-manager-0.72.97/work/qt-virt-manager-0.72.97/src/vm_viewer/qspice_widgets/qspice-helper.h:27,
                 from /tmp/portage/app-emulation/qt-virt-manager-0.72.97/work/qt-virt-manager-0.72.97/src/vm_viewer/qspice_widgets/qspice-smartcard-channel.cpp:2:
/usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/type_traits:2895:3: error: template with C linkage
 2895 |   template<typename _Fn, typename... _Args>
      |   ^~~~~~~~
In file included from /tmp/portage/app-emulation/qt-virt-manager-0.72.97/work/qt-virt-manager-0.72.97/src/vm_viewer/qspice_widgets/qspice-smartcard-channel.cpp:2:
/tmp/portage/app-emulation/qt-virt-manager-0.72.97/work/qt-virt-manager-0.72.97/src/vm_viewer/qspice_widgets/qspice-helper.h:26:1: note: ‘extern "C"’ linkage started here
   26 | 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/spice-client-glib-2.0/spice-client.h:21,
                 from /tmp/portage/app-emulation/qt-virt-manager-0.72.97/work/qt-virt-manager-0.72.97/src/vm_viewer/qspice_widgets/qspice-helper.h:27,
                 from /tmp/portage/app-emulation/qt-virt-manager-0.72.97/work/qt-virt-manager-0.72.97/src/vm_viewer/qspice_widgets/qspice-smartcard-channel.cpp:2:
[build.log](https://github.com/F1ash/qt-virt-manager/files/6499086/build.log)

 2900 |   template<typename _Fn, typename... _Args>
      |   ^~~~~~~~
In file included from /tmp/portage/app-emulation/qt-virt-manager-0.72.97/work/qt-virt-manager-0.72.97/src/vm_viewer/qspice_widgets/qspice-smartcard-channel.cpp:2:
/tmp/portage/app-emulation/qt-virt-manager-0.72.97/work/qt-virt-manager-0.72.97/src/vm_viewer/qspice_widgets/qspice-helper.h:26:1: note: ‘extern "C"’ linkage started here
   26 | extern "C" {
      | ^~~~~~~~~~
ninja: subcommands failed
perfect7gentleman commented 3 years ago

build.log

F1ash commented 3 years ago

use new release....

perfect7gentleman commented 3 years ago

thanx, fixed.