I try to get simple test programm to communicate with ARM and DSP cores of C6A8168. I succesfully build syslink.ko (2.10.03.20) and load my simple test program into DSP core. But I can't compile even simple program on ARM side with syslink API - I get such message:
arm-none-linux-gnueabi-g++ -D__LINUX__ -O2 -Wall -c -MD main.cpp
arm-none-linux-gnueabi-g++ -o dsphost main.o -Wl -ldl -lrt -lpthread -lm
main.o: In function `main':
main.cpp:(.text+0x4): undefined reference to `SysLink_setup'
collect2: ld returned 1 exit status
Source code of main.cpp:
/* cstdlib header files */
#include <stdio.h>
#include <stdlib.h>
/* package header files */
#include <ti/syslink/Std.h> /* must be first */
#include <ti/syslink/IpcHost.h>
#include <ti/syslink/SysLink.h>
#include <ti/ipc/MultiProc.h>
int main()
{
/* SysLink initialization */
SysLink_setup();
return 0;
}
How it can be fixed?