From mboxrd@z Thu Jan 1 00:00:00 1970 From: lijiandm Subject: libxc cannot used Date: Mon, 10 Nov 2008 11:11:41 +0800 (CST) Message-ID: <10565699.533951226286701555.JavaMail.coremail@app141.163.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0001629831==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: =?gbk?Q?xen-devel=D7=E9?= List-Id: xen-devel@lists.xenproject.org --===============0001629831== Content-Type: multipart/alternative; boundary="----=_Part_143866_2980911.1226286701543" ------=_Part_143866_2980911.1226286701543 Content-Type: text/plain; charset=gbk Content-Transfer-Encoding: 7bit hello list: I have installed xen 3.1.0 on fedora core 8,and write the code to test libxc: #include 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? ------=_Part_143866_2980911.1226286701543 Content-Type: text/html; charset=gbk Content-Transfer-Encoding: quoted-printable
 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;<= BR>  /* open handle to the libxc interface */
  if ((xc_handle= =3D xc_interface_open()) =3D=3D -1){
     &nbs= p;  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?


=20
[=B9=E3=B8=E6] =BD=F0=C7=EF=D7=EE=B9=D8=D7=A2= =C2=A5=C5=CC-=B7=BF=B2=BB=CA=A4=B7=BF ------=_Part_143866_2980911.1226286701543-- --===============0001629831== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0001629831==--