Including rtl_posixio.h in the very first line causes:

In file included from /usr/src/rtlinux-3.1/linux/include/linux/wait.h:14,
                 from /usr/src/rtlinux-3.1/linux/include/linux/fs.h:12,
                 from /usr/src/rtlinux-3.1/include/rtl_posixio.h:13,
                 from rtmodule.cpp:1:
/usr/src/rtlinux-3.1/linux/include/linux/list.h:35: parse error before `new'
/usr/src/rtlinux-3.1/linux/include/linux/list.h: In function `void __list_add 
(...)':
/usr/src/rtlinux-3.1/linux/include/linux/list.h:39: `next' undeclared (first 
use this function)
/usr/src/rtlinux-3.1/linux/include/linux/list.h:39: (Each undeclared 
identifier is reported only once
...

And so on. The module is being compiled this way:

g++ -D__KERNEL__ -Wall -Wstrict-prototypes -fno-strict-aliasing -pipe 
-mpreferred-stack-boundary=2 -march=k6 -DMODULE -DMODVERSIONS -include 
/usr/src/linux-2.4.4rtl/include/linux/modversions.h -fomit-frame-pointer 
-D__RTL__ -D_LOOSE_KERNEL_NAMES -I/usr/src/rtlinux-3.1/linux/include 
-I/usr/src/rtlinux-3.1/include -I/usr/src/rtlinux-3.1/include/compat 
-I/usr/src/rtlinux-3.1/include/posix -fno-exceptions -fno-rtti   -c -o 
rtmodule.o rtmodule.cpp

Ivan

On Friday 09 November 2001 16:59, David Olofson wrote:
> On Friday 09 November 2001 15:25, Ivan Martinez wrote:
> > What I need from unistd.h is to allow users to use the standard
> > open-read-write-close interface with realtime fifos, which AFAIK is
> > supposed to work in realtime code and it actually does in my non-C++
> > modules. The alternative is rtf_put-rtf_get, but then I can't say DSLib
> > completely encapsulates RTLinux' interface anymore.
>
> No, no, no! rtl_posixio is your tool in this case; not unistd. :-)
>
>
> //David Olofson --- Programmer, Reologica Instruments AB
>
> .- M A I A -------------------------------------------------.
>
> |      Multimedia Application Integration Architecture      |
> | A Free/Open Source Plugin API for Professional Multimedia |
>
> `----------------------------> http://www.linuxdj.com/maia -'
> .- David Olofson -------------------------------------------.
>
> | Audio Hacker - Open Source Advocate - Singer - Songwriter |
>
> `-------------------------------------> http://olofson.net -'
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
-- [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/

Reply via email to