Re: Redefines between "comedilib.h" and "rtai_sched.h"

	As I can see, only the user-space version gets installed under 
"/usr/include". So If I want to use the kernel one, I have to use a "-I" 
directive with the path to the "include" directory in Comedi source tree, 
something like "-I/usr/local/src/comedi-0.7.46/include". Is that correct?.
	Thank you,
	Ivan

On Wednesday 29 May 2002 08:16 am, Michael Hillmann wrote:
> > I'm trying to include "comedilib.h" and "rtai_sched.h" in the same
> > module, but I get many redefines between them:
> >
> > gcc -c -I/usr/include -I/usr/local/include -I/usr/src/rtai/include
> > -D__KERNEL__ -DMODULE -O2 -Wall -o rtmodule.o rtmodule.c
>
> Note, there are two versions of comedilib.h includes. One for the Userspace
> programms and one for the Kernel modules.
>
> If you want to write a Kernel module, you should include
> #include <linux/comedilib.h>
>
> for Userspace programms
> #include <comedilib.h>
>
> Michael
>
>
>
> _______________________________________________
> comedi mailing list
> comedi_at_stm.lbl.gov
> http://stm.lbl.gov/cgi-bin/mailman/listinfo/comedi

Received on 2002-05-29Z07:54:06