[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] Xen Store API in userspace
Artur Baruchi wrote: > 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 try to add: -lxenstore > > Part of the code: > #include <xs.h> > ... > 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 <zhigang.x.wang@xxxxxxxxxx> > 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@xxxxxxxxxxxxxxxxxxx >>> http://lists.xensource.com/xen-devel >> > > _______________________________________________ > Xen-devel mailing list > Xen-devel@xxxxxxxxxxxxxxxxxxx > http://lists.xensource.com/xen-devel _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |