WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

RE: [Xen-devel] libxc cannot used

To: lijiandm <lijiandm@xxxxxxx>
Subject: RE: [Xen-devel] libxc cannot used
From: "Lu, Guanqun" <guanqun.lu@xxxxxxxxx>
Date: Wed, 12 Nov 2008 00:34:09 +0800
Accept-language: en-US
Acceptlanguage: en-US
Cc: xen-devel组 <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 11 Nov 2008 08:34:29 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <10565699.533951226286701555.JavaMail.coremail@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <10565699.533951226286701555.JavaMail.coremail@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AclC4jDT6uJf0CPPRJilt6pUbMRA6ABOM9Sw
Thread-topic: [Xen-devel] libxc cannot used
Hi,
 
Have you passed xenctrl library to gcc?
 
try this:
gcc -o hello hello.c -lxenctrl
 
HTH
 
--
Guanqun
 


From: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx [mailto:xen-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of lijiandm
Sent: Monday, November 10, 2008 11:12 AM
To: xen-devel组
Subject: [Xen-devel] libxc cannot used

 hello list:
  I have installed xen 3.1.0 on fedora core 8,and write the code to test libxc:
 
#include <xenctrl.h>
int main()
{
 int xc_handle;
  /* open handle to the libxc interface */
  if ((xc_handle = xc_interface_open()) == -1){
        printf("ERROR: Failed to open libxc interface\n");
        return 0;
  }
 return 1;
}
But it metioned :
"undefined reference to `'xc_interface_open'".
 
What's the reason?How can I use libxc correctly?



[广告] 金秋最关注楼盘-房不胜房  
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>