Il 10/02/2014 19:18, Vincent KHERBACHE ha scritto:

I just created a new QMP command following the
'writing-qmp-commands.txt' howto.

It's works well by adding the corresponding function into 'qmp.c', but
when I want to insert the function in 'kvm-all.c' (which is my goal) I
get an 'undefined reference' error to the function from 'qmp-marchal.c'
during the compilation.

I already included "qmp-commands.h" in 'kvm-all.c' preprocessor but it
didn't solve the problem.


Does someone know how to fix it (or why it happens) ?
Thanks.

Maybe you need to add a dummy implementation in kvm-stub.c? kvm-all.c is not compiled into all targets, only on the "native" ones (e.g. i386 and x86_64 if compiling on x86).

Paolo

Reply via email to