Am Don, 26 Okt 2000 schrieben Sie:
> Hi Olaf,
>
> > I'm switching from rtl.2.2 to v3pre8 now and I found some problems with the
> > order of includes. The rtl.mk does include all paths e.g. /usr/rtlinux/include,
> > /usr/rtlinux/include/posix. The last ist very important else the cc doesn't
> > find the right includes and take the one from the kernel tree (e.g. time.h)
> > regardless of the right one from the /usr/rtlinux/include/posix dir. Why the
> > way of order of include paths and not do inside the rtl-includes an
> > #include <posix/time.h> anstead of #include <time.h>.
> > To find this behavior .... hours.
> >
> > I don't use rtl.mk - I use autoconf && automake !
>
> I guess you'll need to teach autoconf/automake to find include/posix/
At moment the only solution (and not a real big problem). I do it but, I spend
hours to find this !
> first. We may change the includes in posix/time.h for rtl internal
> files, but we would like users to be able to
> #include <time.h>
> in rtl programs and get rtl-specific headers.
Imo thats right so the user can dicide what he want, simple threads ala
example/frank or more system programing by explicit including posix/time.h
and/or include path. There is imo only one posix dir at moment (phtread and
kernel doen't have - I'm not the specialist.).
To avoid cunfusing rtai/rtl I change the makefile ( which isn't very elegant
like the advice from Stuart Hughes/DavidSchleef ) and inside the sources I use
a construct like
#if defined(CONFIG_RTL)
#include <rtlinux/xxx.h>
#elif defined(CONFIG_RTHAL)
#include <rt/xxx.h>
#else
# error "no realtime extension defined !"
#endif
Thanks Olaf
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/