在使用使用fftlib_c66x_2_0_0_2库时,编译出现了错误。直接打开fftlib库源码编译,运行都没有错,但是我把源码生成lib库文件,在另一个工程中调用时会出现编译错误。我在把fftlib生成库函数时,只是把源
**** Build of configuration Debug for project fftlibtest ****
"D:\\ticcs5.5\\ccsv5\\ccsv5\\utils\\bin\\gmake" -k all
'Building file: ../fftlibtest.cfg'
'Invoking: XDCtools'
"D:/ticcs5.5/ccsv5/xdctools_3_25_03_72/xs" –xdcpath="D:/ticcs5.5/ccsv5/dsplib_c66x_3_1_0_0/packages;D:/ticcs5.5/ccsv5/edma3_lld_02_11_05_02/packages;D:/ticcs5.5/ccsv5/framework_components_3_30_00_06/packages;D:/ticcs5.5/ccsv5/framework_components_3_30_00_06/examples;D:/ticcs5.5/ccsv5/framework_components_3_30_00_06/fctools/packages;D:/ticcs5.5/ccsv5/mathlib_c66x_3_0_1_1/packages;D:/ticcs5.5/ccsv5/mcsdk_2_01_02_06/demos;D:/ticcs5.5/ccsv5/pdk_C6657_1_1_2_6/packages;D:/ticcs5.5/ccsv5/pdk_C6670_1_1_2_6/packages;D:/ticcs5.5/ccsv5/pdk_C6678_1_1_2_6/packages;D:/ticcs5.5/ccsv5/bios_6_35_04_50/packages;D:/ticcs5.5/ccsv5/xdais_7_21_01_07/packages;D:/ticcs5.5/ccsv5/xdais_7_21_01_07/examples;D:/ticcs5.5/ccsv5/ccsv5/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.elf.C66 -p ti.platforms.evm6678 -r release -c "D:/ticcs5.5/ccsv5/ccsv5/tools/compiler/c6000_7.4.4" "../fftlibtest.cfg" making package.mak (because of .xdcenv.mak) … configuring fftlibtest.xe66 from package/cfg/fftlibtest_pe66.cfg … cle66 package/cfg/fftlibtest_pe66.c … 'Finished building: ../fftlibtest.cfg'
' '
'Building target: fftlibtest.out
' 'Invoking: C6000 Linker'
"D:/ticcs5.5/ccsv5/ccsv5/tools/compiler/c6000_7.4.4/bin/cl6x" -mv6600 –abi=eabi -g –display_error_number –diag_warning=225 –diag_wrap=off -z -m"fftlibtest.map" -i"D:/ticcs5.5/ccsv5/ccsv5/ccs_base/c6000/include" -i"E:/ccs5.5workspace/FFTLIB/fft_lib" -i"D:/ticcs5.5/ccsv5/ccsv5/tools/compiler/c6000_7.4.4/lib" -i"D:/ticcs5.5/ccsv5/ccsv5/tools/compiler/c6000_7.4.4/include" –reread_libs –warn_sections –display_error_number –diag_wrap=off –xml_link_info="fftlibtest_linkInfo.xml" –rom_model -o "fftlibtest.out" -l"./configPkg/linker.cmd" "./main.obj" "./fft_sp_mixed_bs.obj" "./fft_sp_cmplx_notwid_br.obj" "./fft_rad_2p2_next_sm2_notwid_br.obj" "./fft_rad_2p2_next_sm1_notwid_br.obj" "./fft_rad_2p2_next_ro_f_notwid_br.obj" "./fft_rad_2p2_next_notwid_br.obj" "./fft_miss_pipe_notwid_br.obj" "./fft_large_notwid_br.obj" "./fft_dp_mixed_bs.obj" "./fft_common.obj" "./fft_c6678_config.obj" "./fft_bit_rev_ii32_notwid_br.obj" "../FFTLIB.lib" -l"E:\ccs5.5workspace\FFTLIB\fft_lib\FFTLIB.lib" -l"libc.a" <Linking>
warning #10247-D: creating output section ".ddr_mem" without a SECTIONS specification
warning #10247-D: creating output section ".ll2_mem" without a SECTIONS specification
undefined first referenced
symbol in file
——— —————-
DSPF_dp_fftDPxDP ./fft_dp_mixed_bs.obj
DSPF_dp_ifftDPxDP ./fft_dp_mixed_bs.obj
EdmaMgr_alloc ../FFTLIB.lib<fft_dp_2d_r2c_d.obj>
EdmaMgr_copy1D1D ../FFTLIB.lib<fft_dp_2d_r2c.obj>
EdmaMgr_copy1D2D ../FFTLIB.lib<fft_dp_2d_r2c.obj>
EdmaMgr_init ../FFTLIB.lib<fft_dp_2d_r2c_d.obj>
EdmaMgr_wait ../FFTLIB.lib<fft_dp_2d_r2c.obj>
error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "fftlibtest.out" not built
>> Compilation failure
gmake: *** [fftlibtest.out] Error 1
gmake: Target `all' not remade because of errors.
**** Build Finished ****
使用的ccs版本为:ccs5.5 ; DSPLIB_C66x_3.1.0.0; EDMA3-2.11.5;Framework Components 3.30.0.06; MCSDK 2.1.2.6; MCSDK SDK 1.1.2.6;SYS/BIOS 6.35.4.50;XDAIS 7.21.1.07
麻烦知道的指导下,谢谢
Andy Yin1:
提示很多符号没有定义,可能是缺乏相关的lib,先查一下缺少定义的符号在哪个文件里实现,然后把其对应的lib或者c文件加进来编译。
Han Wu4:
你好,你用的板子是C6657吗,你是怎么修改fft_c6678_config.c这个文件的呢,这个是不是只支持C6678?