Hello,I wrote a program using libvirt API to get vm information like this:
/*dom is virDomainPtr type*/
dom=virDomainLookupByID(conn,activeDomains[i]);
if(dom!=NULL)
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);
printf("%d ----------%s\n",activeDomains[i],dom->name);
what is the reason of it???
thanka a lot!
zhunxun@xxxxxxxxx
-- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list