Basics of CVS

Hi

I have downloaded and installed the latest CVS (yesterday) and tried to 
compile the "Your first COMEDI program" and "Your second COMEDI program" 
using the comedi_test driver.

The first program compiles fine but returns a, for me, unexpected result of 
constantly "32767".

The second program gives the following compile error.

tmh_at_cpt:~/Develop/comedi_test> gcc comedit2.cpp -lcomedi -o comedit2
comedit2.cpp: In function ‘int main(int, char**)’:
comedit2.cpp:22: error: ‘comedi_get_rangetype’ was not declared in this scope
comedit2.cpp:24: error: invalid use of undefined type ‘struct comedi_t_struct’
/usr/include/comedilib.h:37: error: forward declaration of ‘struct 
comedi_t_struct’
comedit2.cpp:26: error: invalid conversion from ‘int’ to ‘comedi_range*’
/usr/include/comedilib.h:124: error: too many arguments to function ‘double 
comedi_to_phys(lsampl_t, comedi_range*, lsampl_t)’
comedit2.cpp:26: error: at this point in file

From looking in the comedilib.h it appears that the "comedi_get_rangetype" has 
been deprecated. Is there a place where I can find the basics of programming 
in the new interface?

Regards
Torben

Received on 2006-05-17Z09:14:35