<div dir="ltr"><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Alex Roithman</b> <span dir="ltr"><<a href="mailto:kaperang07@gmail.com">kaperang07@gmail.com</a>></span><br>Date: 18 November 2015 at 22:17<br>Subject: libcacard: forward declaration of VReader<br>To: <a href="mailto:qemu-discuss@nongnu.org">qemu-discuss@nongnu.org</a><br><br><br><div dir="ltr"><div><div>hi<br><br></div>my project not build complete, because i have:<br></div><div><error><br></div><div>/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<br>/home/Flash/qt-virt-manager/src/vm_viewer/qspice_widgets/qspicesmartcardmanager.cpp: В функции-члене «QStringList QSpiceSmartcardManager::spiceSmartcardManager_get_readers()»:<br>/home/Flash/qt-virt-manager/src/vm_viewer/qspice_widgets/qspicesmartcardmanager.cpp:89:35: error: invalid use of incomplete type «VReader {aka struct VReaderStruct}»<br>         _readerList.append(_reader->name);<br>                                   ^<br>In file included from /usr/include/cacard/eventt.h:8:0,<br>                 from /usr/include/cacard/vreader.h:9,<br>                 from /home/Flash/qt-virt-manager/src/vm_viewer/qspice_widgets/qspicesmartcardmanager.cpp:2:<br>/usr/include/cacard/vreadert.h:16:16: warning: forward declaration of «VReader {aka struct VReaderStruct}»<br> typedef struct VReaderStruct VReader;<br></div><div></error><br></div><div><br></div>in system installed<br><div>libcacard.x86_64 2:2.3.1-7.fc22                      <br>libcacard-devel.x86_64 2:2.3.1-7.fc22<br><br></div><div>in code i'm use only<br>#include <vreader.h><br></div><div>from libcacard<br><br></div><div>part of code:<br></div><div><code><br></div><div>        VReader *_reader =<br>                static_cast<VReader*>(g_list_nth_data(_list, i));<br>         _readerList.append(_reader->name);<br></div><div></code><br></div><div><br></div><div>Maybe you have same problems at building.<br></div>I accept any advice.</div>
</div><br></div>