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

[libvirt] libvirt question



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);
what is the reason of it???
thanka a lot!

zhunxun gmail com

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