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

> 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

Received on 2002-05-29Z05:16:30