[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

shared memory and rtai_shm (mbuff)



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
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com