Fwd: libcacard: forward declaration of VReader

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




---------- Forwarded message ----------
From: Alex Roithman <kaperang07@xxxxxxxxx>
Date: 18 November 2015 at 22:17
Subject: libcacard: forward declaration of VReader
To: qemu-discuss@xxxxxxxxxx


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.

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]