Re: guys is the header file broken??

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

 



On Fri, 2016-03-18 at 14:00 +0530, Dravid Kumar wrote:
> cause i get this error 
> 
> me.cpp: In function ‘int main(int, char**)’:
> me.cpp:23:45: error: ‘virConnectCreateXML’ was not declared in this scope
>  dom = virConnectCreateXML(conn, xmlconfig, 0);
>                                              ^
> me.cpp:27:5: error: return-statement with no value, in function returning ‘int’ [-fpermissive]
>      return;
>      ^
> me.cpp:30:57: error: ‘virDomainName’ was not declared in this scope
>  fprintf(stderr, "Guest %s has booted", virDomainName(dom));
> 
> 
> for the attached cpp file

You probably want to use

  virDomainCreateXML()

instead of the non-existent virConnectCreateXML() :)

You should also probably post questions such as this one to
libvirt-users, a mailing list dedicated to users of libvirt,
rather than to libvir-list, which is for the development of
libvirt itself.

Cheers.

-- 
Andrea Bolognani
Software Engineer - Virtualization Team

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]