Nathaniel J Villaume wrote:
 > Hi, 
 > 
 > I'm trying to create a shared memory region using posix i/f. 
 > I hijacked the example on the opengroup webpage. My problem is
 > that when I try to link, there is no shm_open symbol defined in
 > the libraries xeno has built. (although there is a
 > __wrap_shm_open in libpthread_rt.a) Which library do I link against?

You should link against libpthread_rt.a, but with a bunch of --wrap
options. xeno-config provide an automated way of getting these options:

xeno-config --posix-cflags give the flags to be used when compiling,
xeno-config --posix-ldflags give the flags to be used when linking.

For an example of Makefile using xeno-config, see
ksrc/skins/posix/demos/Makefile

-- 


                                            Gilles Chanteperdrix.

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to