From: Brent B. <ou...@gm...> - 2005-03-28 22:24:52
|
I've been trying to add my own driver that controls the motors on the robots. Before that, I am trying to get the exampledriver.cc to work. Do I need to use libtool to link it? Is there a specific command to do that, because I did make the .la file using libtool, but it still gives me an error: Parsing configuration file "example.cfg" trying to load /usr/local/src/player/examples/plugins/exampledriver/./libexampledriver.la...success invoking player_driver_init()...failed error : failed to resolve player_driver_init: /usr/local/src/player/examples/plugins/exampledriver/./.libs/libexampledriver.so.0: undefined symbol: player_driver_init after I did this: libtool --mode=compile g++ -g -O -c exampledriver.cc and this: libtool --mode=link gcc -g -O -o libexampledriver.la exampledriver.cc -rpath /usr/local/lib -lm player_driver_init is still in the extern "C" function and I haven't changed it a bit. Is this supposed to fail (and the player_driver_init is what I need to configure for my driver or is that just in main)? Since I prelinked the file with libtool, is this conflicting with this function? All I'm looking for is motor control, so any pointers you guys could give (a newbie at best), I would appreciate it. Brent Bulla BYU-Idaho -- Kahit isipan mo kaya o 'di kaya, tama ka. |