[libvirt] error in compiling event-test.c

Michal Privoznik mprivozn at redhat.com
Mon Jan 6 09:08:29 UTC 2014

On 06.01.2014 06:03, rash g wrote:
> Hello,
>          I am trying to run event-test.c provided in libvirt package.I
> am using ubuntu 13.04.
> However,after compiling I am getting an error saying  ->undefined
> reference to...
> I think this is because compiler is not able to find the functions and
> macros in the header files.However I am not able to solve the problem.
>           I have provided my screenshot of error as an attachment. I
> shall be really grateful if anyone can help me.
> Thanks
> Rashmi

Looks like you're not linking libvirt library. Although, it should be
done automatically. What's the actual command you're running or steps to
reproduce? Is this the git or an unpacked archive?

BTW: don't worry pasting a console output in here rather than in .docx
attachment. We're open-source after all ;)


More information about the libvir-list mailing list