problem when using both rtlinux and comedi

Dear all,

I just got a problem when I trying to compile my test program with 
comedilib.h as head file in it. I'm using debian, comedi0.7.44 and 
rtlinux3.0. I Millions of warnings and one conflicting error occured when 
compiling and the last several lines of errors are as following:

In file included from /usr/include/sys/ioctl.h:30
                     from /usr/src/comedilib/include/comdelib.h:29
                     from testrt.c:13
/usr/include/bits/ioctl-types.h:29:redefinition of 'struct winsize'
/usr/include/bits/ioctl-types.h:38:redefinition of 'struct termio'
In file included from /usr/src/comedilib/include/comdelib.h:29
                     from tesrrt.c:13:
/usr/include/sys/ioctl.h:42conflictiong types for 'ioctl'
/usr/src/rtlinux/include/posix/unistd.h:25:previous declaration of 'ioctl'

testrt is my testing program.

Anyone can help me?

Many thanks,

Xiaoyu Duan

_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE* 
http://join.msn.com/?page=features/junkmail

Received on 2003-06-18Z10:27:25