[Spice-devel] Fwd: libcacard: forward declaration of VReader
Marc-André Lureau
marcandre.lureau at gmail.com
Thu Nov 19 01:03:33 PST 2015
hi
On Thu, Nov 19, 2015 at 9:12 AM, Alex Roithman <kaperang07 at gmail.com> wrote:
>
> ---------- Forwarded message ----------
> From: Alex Roithman <kaperang07 at gmail.com>
> Date: 18 November 2015 at 22:17
> Subject: libcacard: forward declaration of VReader
> To: qemu-discuss at nongnu.org
>
>
> hi
>
> 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 installed
> libcacard.x86_64 2:2.3.1-7.fc22
> libcacard-devel.x86_64 2:2.3.1-7.fc22
>
> in code i'm use only
> #include <vreader.h>
> from libcacard
>
> part of code:
> <code>
> VReader *_reader =
> static_cast<VReader*>(g_list_nth_data(_list, i));
> _readerList.append(_reader->name);
> </code>
>
> Maybe you have same problems at building.
> I accept any advice.
VReader is an opaque type, you can't access any field
>
>
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
>
--
Marc-André Lureau
More information about the Spice-devel
mailing list