Hi,
I got several errors saying that some functions were undefined during linking, but they should be in the myfxn.lib file which was created by c6runlib and passed to the linker. I don't know what was wrong, and hope I can get some help here.
I have a program which is currently running on the ARM core of the OMAP3530 processor. I'd like to use the DSP to share some of the computation load, so I took out one file, say myfxn.c, and compiled it with c6runlib (C6Run version 0.94.05.06, installed with DVSDK 4.01).
There was an error during compilation, saying that in the myfxn.pp.c file 'size_t' was redefined. This is really confusing, because, first of all, stdlib.h was the only header file being included so I don't know how size_t got redefined; and second, the myfxn.pp.c file was created by c6runlib-cc, and I'm not sure I can manually change it.
Anyway, using c6runlib, I got these files created in the source code folder (where myfxn.c locates),
myfxn.fxn_list.txt (this file is totally empty)
myfxn.gpp_stub.o
myfxn.pp.c
And in the Makefile folder, I got
myfxn.c.001t.tu
myfxn.dsp_stub.o
myfxn.o
and the library file myfxn.lib.
Then I got the undefined symbol error when linking the library file with other object files.
Any idea?
Thank you,
Hongwei