Problem compiling some demos

Hello,

I hope this isn't an obvious question, but I've searched the list a
bit to no avail. I recently installed comedi cvs and comedilib cvs
(cvs at recommendation of a colleague) with no build errors. When
trying to build the demo programs, however, I start to see problems. I
can build tut1.c, tut2.c with not problems, but when I try to build
insn.c or info.c (both of which need to be built with common.c also) I
get errors as listed below. The command used was:

gcc -lcomedi -lm info.c common.c -o info

make does not work for any of the examples on my system (gentoo 2006.1
w/ RTAI patches); it invokes cc instead of gcc.

Not sure if there's any other information I should post, so for now
here's the error log:

ranvier demo # gcc -lcomedi -lm info.c common.c
common.c: In function 'arm':
common.c:155: error: 'INSN_CONFIG_ARM' undeclared (first use in this function)
common.c:155: error: (Each undeclared identifier is reported only once
common.c:155: error: for each function it appears in.)
common.c: In function 'reset_counter':
common.c:182: error: 'INSN_CONFIG_RESET' undeclared (first use in this function)

common.c: In function 'set_counter_mode':
common.c:206: error: 'INSN_CONFIG_SET_COUNTER_MODE' undeclared (first use in thi
s function)
common.c: In function 'set_clock_source':
common.c:231: error: 'INSN_CONFIG_SET_CLOCK_SRC' undeclared (first use in this f
unction)
common.c: In function 'set_gate_source':
common.c:257: error: 'INSN_CONFIG_SET_GATE_SRC' undeclared (first use in this fu
nction)

Any thoughts?

-- 
____________________________________

Jonathan R Barchi

Department of Neuroscience
University of Pennsylvania
Philadelphia, PA 19104
____________________________________

Received on 2007-03-27Z14:06:37