Lemme try this again...
I'm using a TS-CAN1 on a TS-7350. When I attempt to use a function from libvca,
I'm receiving an error during linking stating that the function I'm calling is
an undefined reference. I'm getting this error both compiling on the TS, and
cross-compiling on a linux box (with arm-linux-gcc).
To try to figure this out I've simplified things as much as I can. Here's the
error I'm getting:
gcc -I/usr/include/ocera -L/usr/lib/ocera -lvca CANBus.o -o
arm_nodecontroller
CANBus.o: In function `main':
CANBus.c:(.text+0x38): undefined reference to `vca_open_handle'
collect2: ld returned 1 exit status
CANBus.c looks like this (like I said, I've stripped nearly everything out):
#include "can_vca.h"
int main(void)
{
vca_handle_t canhandle;
const char *candev = "/dev/can0";
vca_open_handle(&canhandle, candev, 0, 0);
}
As a test I've tried other functions from libvca and gotten the same error. I'm
really at a loss here, and I'm not sure where to proceed.
Thanks
-Jesse
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|