在使用TI 新的FFTLIB(fftlib_c66x_2_0_0_2)时,出现编译错误的问题。使用库中的fft_sp_1d_r2c_batch函数,文件夹“c:\ti\fftlib_c66x_2_0_0_2\packages\ti\fftlib\src\common”中的所有文件都加入到工程中。主程序中添加的头文件如下:
#include <ti\fftlib\src\fft_sp_1d_r2c_batch\fft_sp_1d_r2c_batch.h>
#include <ti\fftlib\src\common\fft_edma.h>
编译时报的错误:
undefined first referenced
symbol in file
--------- ----------------
EdmaMgr_alloc ./omp_demo/RDSPDemo/rdspFrame.obj
EdmaMgr_copy1D1D ./fft_sp_1d_r2c_batch.obj
EdmaMgr_init ./omp_demo/RDSPDemo/rdspFrame.obj
EdmaMgr_wait ./fft_sp_1d_r2c_batch.obj
error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "Demo_ffttest.out"
>> Compilation failure
gmake: *** [Demo_VPX6_DSP4_tobofei_ffttest.out] Error 1
gmake: Target `all' not remade because of errors.
>> Compilation failure
gmake: *** [Demo_VPX6_DSP4_tobofei_ffttest.out] Error 1
gmake: Target `all' not remade because of errors.
Description
#10010 errors encountered during linking; "Demo_VPX6_DSP4_tobofei_ffttest.out" not built
#10234-D unresolved symbols remain
unresolved symbol EdmaMgr_alloc, first referenced in ./omp_demo/RDSPDemo/rdspFrame.obj
unresolved symbol EdmaMgr_copy1D1D, first referenced in ./fft_sp_1d_r2c_batch.obj
unresolved symbol EdmaMgr_init, first referenced in ./omp_demo/RDSPDemo/rdspFrame.obj
unresolved symbol EdmaMgr_wait, first referenced in ./fft_sp_1d_r2c_batch.obj
使用的CCS版本为5.4;Compiler version v7.4.4;bios version 6_35_01_29;framework_components version 3_30_00_06;pdk version C6678_1_1_2_6。
函数EdmaMgr_alloc,EdmaMgr_copy1D1D,EdmaMgr_init,EdmaMgr_wait在fft_edma.h中引用的#include <ti/sdo/fc/edmamgr/edmamgr.h>中都有声明,为什么编译时还会出现未定义的错误?