[Libvir] Libvirt on windows

Richard W.M. Jones rjones at redhat.com
Tue Jan 29 14:14:55 UTC 2008

Gabriel Kaufmann wrote:
> I tool libvirt-0.dll and I am using it in VC.
> In order to do this, I had to dynamically load the DLL and map all its functions.

This is somewhat outside my experience.  My best suggestion (guess) is 
to try adding __declspec(dllexport) around some libvirt functions to see 
if this causes them to be exported to VC++-compiled programs.

On gcc declspec doesn't appear to be necessary.

See also: http://www.cygwin.com/ml/cygwin/2000-05/msg00430.html


Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom.  Registered in
England and Wales under Company Registration No. 03798903
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20080129/dd37feb9/attachment-0001.bin>

More information about the libvir-list mailing list