Hi,
I tried to wirte a simple program for my C674x on my EMV8618, what simply calculates the primes until a given number.
The code looks like:
void prim(int untill, int* a){
int i,j,n;
n = 0;
for(i=1;i <= untill; ++i){
for(j=1; j<=i;++i){
if(i%j == 0){
if(i == j && j != 1){
a[n] = i;
++n;
break;
}
}
}
}
}
The pointer a points to a memory allocated by C6RUN_MEM_calloc on the ARM-side.
Compiling a binary with c6runlib-cc works, but wenn i try to build a lib out of it, i got this error:
c6runlib-ar rcs libprim.lib libprim.o
"/tmp/024988X0SC9", line 12: error #10008-D: cannot find file
"/usr/local/ezsdk/component-sources/c6run_0_98_00_00/bin/../lib/c6run_dsp/li
bc6rundsp_main.a"
error #10008-D: cannot find file
"/usr/local/ezsdk/component-sources/c6run_0_98_00_00/bin/../lib/c6run_dsp/li
bc6rundsp.a"
"/tmp/024988X0SC9", line 16: error #10008-D: cannot find file
"/usr/local/ezsdk/component-sources/c6run_0_98_00_00/bin/../lib/c6run_dsp/c6
rundsp.cmd"
warning #10210-D: creating ".stack" section with default size of 0x400; use the
-stack option to change the default size
undefined first referenced
symbol in file
--------- ----------------
C6RUN_CACHE_globalInv libprim.dsp_stub.o
C6RUN_CACHE_globalWb libprim.dsp_stub.o
C6RUN_CACHE_inv libprim.dsp_stub.o
C6RUN_CACHE_wb libprim.dsp_stub.o
main /usr/local/ezsdk/dsp-devkit/cgt6x_7_2_3/lib/rts6740_elf.lib<args_main.obj>
error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "libprim.lib.dsp_image.out"
not built
Can aanyone help me?
Regards,
Kristian