- From: Ian Abbott <abbotti_at_mev.co.uk>
- Date: Wed, 28 Mar 2007 10:59:06 +0100
On 28/03/2007 00:29, Jonathan Barchi wrote: > Apologies if this is a repost (tried to post earlier today, never went > through) > > 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? It looks like it's pulling in old versions of the Comedi header files from /usr/include or /usr/local/include. Try compiling with the -H option to see which headers it's including. -- -=( Ian Abbott _at_ MEV Ltd. E-mail: <abbotti_at_mev.co.uk> )=- -=( Tel: +44 (0)161 477 1898 FAX: +44 (0)161 718 3587 )=-
Received on 2007-03-28Z08:59:06