|  |  | 
  
    |  |  | 
 
  |   |  | 
  
    |  |  | 
  
    |  |  | 
  
    |   xen-devel
RE: [Xen-devel] libxc cannot used 
| Hi,   Have you passed xenctrl 
library to gcc?   try this: gcc -o hello hello.c 
-lxenctrl   HTH   -- Guanqun   
 
  
  
   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
 | 
 |  | 
  
    |  |  |