From: Artur Baruchi Subject: Re: Xen Store API in userspace Date: Tue, 17 Mar 2009 16:04:53 -0300 Message-ID: References: <49BEF2D6.6040609@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <49BEF2D6.6040609@oracle.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Zhigang Wang Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Hi. I used the xs.h but when tring to compile it, I got the follow error messages: get_info.c:(.text+0x9): undefined reference to `xs_daemon_open' get_info.c:(.text+0x5a): undefined reference to `xs_write' get_info.c:(.text+0x63): undefined reference to `xs_daemon_close' collect2: ld returned 1 exit status The command to compile is: gcc -Wall get_info.c -o get_info.o Part of the code: #include ... struct xs_handle *xsh; xsh = xs_daemon_open(); ... xs_write (xsh, XBT_NULL, "testing", mem, strlen(mem)); xs_daemon_close(xsh); I dont think its a problem in my code, but it is in my libs or the way that Im tring to compile it. Thanks in advance. Att. Artur Baruchi On Mon, Mar 16, 2009 at 9:46 PM, Zhigang Wang wrote: > Artur Baruchi wrote: >> Hi Guys, >> >> Is possible to use functions like xenbus_printf in user space? If >> yes.. which libraries do I should use ? > > xen-unstable/tools/xenstore/xs.h > > use this lib. > > zhigang > >> >> Thanks in advance. >> >> Att. >> Artur Baruchi >> >> _______________________________________________ >> Xen-devel mailing list >> Xen-devel@lists.xensource.com >> http://lists.xensource.com/xen-devel > >