[libvirt] libvirt question

zhunxun at gmail.com zhunxun at gmail.com
Fri May 19 02:52:32 UTC 2017

Hello,I wrote a program using libvirt API to get vm information like this:
/*dom  is virDomainPtr type*/
    printf("%d    ----------%s\n",activeDomains[i],dom->name);
but when compile it,error occured like this:
vm_eraser_detect.c:125:54: error: dereferencing pointer to incomplete type
    printf("%d    ----------%s\n",activeDomains[i],dom->name);
what is the reason of it???
thanka a lot!

zhunxun at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20170519/7c263151/attachment-0001.htm>

More information about the libvir-list mailing list