daniel
Sorry to be unresponsive I am currently "on the road".
If this suggestion does not work.
Please send a sample of the code that does not work
and the makefile
I think you will need
#include <fcntl.h>
#include <sys/mman.h>
in your user space application
Make sure you do not -D__KERNEL__ when compiling the user space application
y
ou seem not to do this.
A quick scan through mbuff.h would have shown you the includes that you are
misssing btw.
regards
Phil Wilshire
> Hello RTLees
>
> When I run the rtai_shm test in /rtai/shmem/test everything appears
> to be working fine. When attempting to compile a shared memory
> example (user-space) from Phil Wilshire I get error messages of the
> type:
>
> rtai_shm.h:77 O_RDWR undeclared
> rtai_shm.h:85 PROT_WRITE undeclared
>
> etc.. Unlike the Phil Wilshire example which uses mbuff I am using
> rtai_shm and have therefore made the appropriate calls to rtai_malloc
> instead of mbuff_alloc.
>
> Can anyone tell me what I am missing. I compiled simply with:
>
> gcc -o myfile myfile.c
>
> Thanks,
> Daniel
> _
-- [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/