From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40654) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCyBa-0005aF-Nn for qemu-devel@nongnu.org; Mon, 10 Feb 2014 16:14:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WCyBU-0002sC-OH for qemu-devel@nongnu.org; Mon, 10 Feb 2014 16:14:38 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:51790) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCyBU-0002rr-I9 for qemu-devel@nongnu.org; Mon, 10 Feb 2014 16:14:32 -0500 Message-ID: <52F94118.20003@inria.fr> Date: Mon, 10 Feb 2014 22:14:00 +0100 From: Vincent KHERBACHE MIME-Version: 1.0 References: <52F917FB.40101@inria.fr> <52F92C66.1080106@suse.de> In-Reply-To: <52F92C66.1080106@suse.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] qmp_* functions into 'kvm-all.c' List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= , qemu-devel@nongnu.org Cc: Paolo Bonzini , Luiz Capitulino That's right ! Problem solved by adding the stub function to 'kvm-stub.c'. Thank you very much ! Le 10/02/2014 20:45, Andreas Färber a écrit : > Hi, > > Am 10.02.2014 19:18, schrieb Vincent KHERBACHE: >> 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. > > Have you thought of also adding a corresponding function to kvm-stub.c > for the targets not linking kvm-all.c? > > Regards, > Andreas > -- Vincent KHERBACHE