- From: Dimitris Xydas <dxydas_at_yahoo.com>
- Date: Wed, 15 Aug 2007 10:17:54 -0700 (PDT)
Hi!
I've been using comedi for a while but can't seem to
compile any demo programs that include the
"examples.h" header. For the simple first two
tutorials everything is ok (cc -o tut1 tut1.c -lcomedi
-lm), but for others I get undefined reference errors.
For example, compiling the info demo (same way):
/tmp/ccCVbhm0.o: In function `main':
info.c:(.text+0x52): undefined reference to
`init_parsed_options'
info.c:(.text+0x6a): undefined reference to
`parse_options'
/tmp/ccCVbhm0.o: In function `get_command_stuff':
info.c:(.text+0x4c5): undefined reference to `cmd_src'
info.c:(.text+0x4ec): undefined reference to `cmd_src'
info.c:(.text+0x513): undefined reference to `cmd_src'
info.c:(.text+0x53a): undefined reference to `cmd_src'
info.c:(.text+0x561): undefined reference to `cmd_src'
/tmp/ccCVbhm0.o:info.c:(.text+0x5eb): more undefined
references to `cmd_src' follow
collect2: ld returned 1 exit status
And for the ao_waveform program:
/tmp/ccGWJ2XM.o: In function `main':
ao_waveform.c:(.text+0x7f): undefined reference to
`init_parsed_options'
ao_waveform.c:(.text+0xa4): undefined reference to
`parse_options'
ao_waveform.c:(.text+0x334): undefined reference to
`dump_cmd'
collect2: ld returned 1 exit status
What's with all the undefined references? Examples.h
declares these functions but seemns the is no code for
them?
Dimitris
____________________________________________________________________________________
Pinpoint customers who are looking for what you sell.
http://searchmarketing.yahoo.com/
Received on 2007-08-15Z16:17:54