- From: <mirko.fischer_at_s2000.tu-chemnitz.de>
- Date: Fri, 1 Aug 2003 12:04:12 +0200
Hello! I want to use directly comedi commands.But while compiling cmd.c the following error occured: Has somebody a tip whats wrong? I'm using a NI-PCI 6023E DAQ-Device with Suse 8.0. Thanx Mirko linux:~/comedilib-0.7.20/demo # c++ cmd.c -lcomedi -o cmd cmd.c: In function `int prepare_cmd_lib(comedi_t *, int, comedi_cmd *)': cmd.c:192: warning: `double' used for argument 4 of `comedi_get_cmd_generic_timed(comedi_t *, unsigned int, comedi_cmd *, unsigned int)' cmd.c: In function `int prepare_cmd(comedi_t *, int, comedi_cmd *)': cmd.c:265: warning: assignment to `unsigned int' from `double' /tmp/ccHSg0NZ.o: In function `main': /tmp/ccHSg0NZ.o(.text+0x21): undefined reference to `parse_options(int, char **)' /tmp/ccHSg0NZ.o(.text+0x2c): undefined reference to `filename' /tmp/ccHSg0NZ.o(.text+0x48): undefined reference to `filename' /tmp/ccHSg0NZ.o(.text+0x75): undefined reference to `n_chan' /tmp/ccHSg0NZ.o(.text+0x93): undefined reference to `aref' /tmp/ccHSg0NZ.o(.text+0xa1): undefined reference to `range' /tmp/ccHSg0NZ.o(.text+0xb4): undefined reference to `channel' /tmp/ccHSg0NZ.o(.text+0xd8): undefined reference to `subdevice' /tmp/ccHSg0NZ.o(.text+0x10d): undefined reference to `dump_cmd(_IO_FILE *, comedi_cmd_struct *)' /tmp/ccHSg0NZ.o(.text+0x1ad): undefined reference to `dump_cmd(_IO_FILE *, comedi_cmd_struct *)' /tmp/ccHSg0NZ.o(.text+0x230): undefined reference to `dump_cmd(_IO_FILE *, comedi_cmd_struct *)' /tmp/ccHSg0NZ.o(.text+0x338): undefined reference to `verbose' /tmp/ccHSg0NZ.o(.text+0x3a3): undefined reference to `n_chan' /tmp/ccHSg0NZ.o: In function `prepare_cmd_lib(comedi_t_struct *, int, comedi_cmd_struct *)': /tmp/ccHSg0NZ.o(.text+0x471): undefined reference to `freq' /tmp/ccHSg0NZ.o(.text+0x4df): undefined reference to `n_chan' /tmp/ccHSg0NZ.o(.text+0x4eb): undefined reference to `n_chan' /tmp/ccHSg0NZ.o(.text+0x500): undefined reference to `n_scan' /tmp/ccHSg0NZ.o: In function `prepare_cmd(comedi_t_struct *, int, comedi_cmd_struct *)': /tmp/ccHSg0NZ.o(.text+0x575): undefined reference to `freq' /tmp/ccHSg0NZ.o(.text+0x5be): undefined reference to `n_chan' /tmp/ccHSg0NZ.o(.text+0x5d4): undefined reference to `n_scan' /tmp/ccHSg0NZ.o(.text+0x5ea): undefined reference to `n_chan' collect2: ld returned 1 exit status linux:~/comedilib-0.7.20/demo #
Received on 2003-08-01Z09:04:12