On Fri, 2010-08-20 at 12:45 +0200, ramon costa wrote: > Hi, > > > I needed to use > #include <pthread.h> > #include <posix/pthread.h> > > > Is it normal ? I would expect to need > > > #include <posix/pthread.h> > > > only. >
Please keep the mailing list Cc'ed. You only have to include <pthread.h>, this is what is expected by POSIX. "xeno-config --skin=posix --cflags" outputs what is required for that purpose. > > > > From what I found in the manual page and in a Xenomai Makefile I have > prepared the following Makefile > for a posix skin user space application > > > ------------------------------------------------------------------------------------------------------------ > ### List of applications to be build > APPLICATIONS = p1_xn_parallel > > > ###### USER SPACE BUILD (no change required normally) ###### > > > ### Default Xenomai installation path > XENO ?= /usr/xenomai > > > XENOCONFIG=$(shell PATH=$(XENO):$(XENO)/bin:$(PATH) which xeno-config > 2>/dev/null) > > > CC=$(shell $(XENOCONFIG) --skin=posix --cc) > > > CFLAGS=$(shell $(XENOCONFIG) --skin=posix --cflags) $(MY_CFLAGS) > > > LDFLAGS=$(shell $(XENOCONFIG) --skin=posix --ldflags) $(MY_LDFLAGS) [snip] > > It works. But I would like to know if it is formally correct. May I > remove something from it ? > If it works, then you should probably keep it this way, until you get your feet wet with this environment. -- Philippe. _______________________________________________ Xenomai-help mailing list Xenomai-help@gna.org https://mail.gna.org/listinfo/xenomai-help