All of lore.kernel.org
 help / color / mirror / Atom feed
* libxc cannot used
@ 2008-11-10  3:11 lijiandm
  2008-11-11 16:34 ` Lu, Guanqun
  0 siblings, 1 reply; 2+ messages in thread
From: lijiandm @ 2008-11-10  3:11 UTC (permalink / raw)
  To: xen-devel组


[-- Attachment #1.1: Type: text/plain, Size: 445 bytes --]

 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?

[-- Attachment #1.2: Type: text/html, Size: 994 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: libxc cannot used
  2008-11-10  3:11 libxc cannot used lijiandm
@ 2008-11-11 16:34 ` Lu, Guanqun
  0 siblings, 0 replies; 2+ messages in thread
From: Lu, Guanqun @ 2008-11-11 16:34 UTC (permalink / raw)
  To: lijiandm; +Cc: xen-devel组


[-- Attachment #1.1: Type: text/plain, Size: 949 bytes --]

Hi,

Have you passed xenctrl library to gcc?

try this:
gcc -o hello hello.c -lxenctrl

HTH

--
Guanqun


________________________________
From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com] 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?


________________________________
[广告] 金秋最关注楼盘-房不胜房<http://popme.163.com/link/003985_1010_7027.html>

[-- Attachment #1.2: Type: text/html, Size: 3131 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-11-11 16:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-10  3:11 libxc cannot used lijiandm
2008-11-11 16:34 ` Lu, Guanqun

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.