|
From: | Alex Roithman |
Subject: | Re: [Qemu-devel] libcacard: forward declaration of VReader |
Date: | Wed, 18 Nov 2015 22:06:17 +0300 |
my project not build complete, because i have:<error>/usr/bin/c++ -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_XML_LIB -I/home/Flash/qt-virt-manager-build -I/home/Flash/qt-virt-manager/src -isystem /usr/include/QtSvg -isystem /usr/include/QtGui -isystem /usr/include/QtXml -isystem /usr/include/QtCore -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/glib-2.0/gobject -I/usr/include/glib-2.0/gio -I/usr/include/cacard -I/usr/include/spice-1 -I/usr/include/spice-client-glib-2.0 -I/usr/include/qtermwidget4 -o CMakeFiles/qt4-virt-manager.dir/src/vm_viewer/qspice_widgets/qspicesmartcardmanager.cpp.o -c /home/Flash/qt-virt-manager/src/vm_viewer/qspice_widgets/qspicesmartcardmanager.cpp
/home/Flash/qt-virt-manager/src/vm_viewer/qspice_widgets/qspicesmartcardmanager.cpp: В функции-члене «QStringList QSpiceSmartcardManager::spiceSmartcardManager_get_readers()»:
/home/Flash/qt-virt-manager/src/vm_viewer/qspice_widgets/qspicesmartcardmanager.cpp:89:35: error: invalid use of incomplete type «VReader {aka struct VReaderStruct}»
_readerList.append(_reader->name);
^
In file included from /usr/include/cacard/eventt.h:8:0,
from /usr/include/cacard/vreader.h:9,
from /home/Flash/qt-virt-manager/src/vm_viewer/qspice_widgets/qspicesmartcardmanager.cpp:2:
/usr/include/cacard/vreadert.h:16:16: warning: forward declaration of «VReader {aka struct VReaderStruct}»
typedef struct VReaderStruct VReader;</error>
in system installedlibcacard.x86_64 2:2.3.1-7.fc22
libcacard-devel.x86_64 2:2.3.1-7.fc22in code i'm use only
#include <vreader.h>from libcacardpart of code:<code>VReader *_reader =
static_cast<VReader*>(g_list_nth_data(_list, i));
_readerList.append(_reader->name);</code>I accept any advice.
[Prev in Thread] | Current Thread | [Next in Thread] |