- From: Everett Wang <everteq_at_sbcglobal.net>
- Date: Tue, 13 Jul 2004 10:17:49 -0700 (PDT)
Hi All, Thanks for the help from Emmanuel and Klaas, I made some progress on this linking thing. I still have one problem: the linking can find other comedi functions except "comedi_do_insnlist". I did a nm on libkcomedilxrt.a. Sure enough that the function is not in it. The libkcomedilxrt.a came with rtai 3.1 test2. Any idea how to solve this? I guess I can call comedi_do_insn a few times to replace the insnlist. :-D Thanks. Everett Emmanuel Mayssat <emmanuel_mayssat_at_lynceantech.com> wrote: You should use -L/usr/realtime/lib -lcomedilxrt See the man page for gcc -- Emmanuel Klaas Gadeyne wrote: >>Thanks for your help again. I tried to link with the libkcomedilxrt.a. >>But got a link error message after I added >>"-L/usr/realtime/lib/libkcomedilxrt.a" during linking: undefined >>reference comedi_open, comedi_do_insn and comedi_do_insnlist. Do you how >>to solve this problem? > > > What exactly is you link command (the -L shouldn't be necessary if you > specify an absolute path)? > > The symbols should be defined in libkcomedilxrt.a (unless something went > wrong when compiling rtai. > > [klaas_at_f012 /usr/realtime/lib]$ > $ nm --defined-only libkcomedilxrt.a | grep comedi_open > 000028a0 T comedi_open > [klaas_at_f012 /usr/realtime/lib]$ > $ nm --defined-only libkcomedilxrt.a | grep comedi_do_insn > 00003620 T comedi_do_insn > > regards, > > klaas > > > > _______________________________________________ > comedi mailing list > comedi_at_comedi.org > https://cvs.comedi.org/cgi-bin/mailman/listinfo/comedi > -- Emmanuel Mayssat Lyncean Technologies, Inc. Direct: 650/320-8300 x409 Cell: 650/248-8811
Received on 2004-07-13Z16:17:49