problem in testing demo program with pci-6035e

Hi,

I installed comedi-0.7.73 from .tar.gz, and libcomedi-0.7.22 and libcomedi-dev coming from Debian packages. I tried to test my acquisition device (PCI-6035E) with the test routines given in comedilib-0.7.22/demo/. 

The problem is during the compilation : the following error appears : 

$ gcc info.c
In file included from info.c:7:
/usr/local/include/comedilib.h:33:2: error: #error linux/comedilib.h should not be included by non-kernel-space code
info.c: In function ‘main’:
info.c:51: error: ‘comedi_range’ undeclared (first use in this function)
info.c:51: error: (Each undeclared identifier is reported only once
info.c:51: error: for each function it appears in.)
info.c:51: error: ‘rng’ undeclared (first use in this function)

How can I deal with the first error ? 

Thanks in advance,

Quentin Bombled
Assistant Professor 
Departement of Theoretical Mechanics 
Faculty of Engineering, Mons
Belgium

Received on 2007-07-12Z09:02:18