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