请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:TMS320F28388D 主题中讨论的其他器件:C2000WARE
大家好、
例程中有一些定义问题。
C:\ti\c2000\C2000Ware_5_01_00_00\libraries\math\FPUfastRTS\c28\examples\atan_F64直接编译工程时报告错误
CCS 版本:Code Composer Studio 版本:12.5.0.00007
错误消息如下所示:
"C:\\ti\\ccs1250\\ccs\\utils\\bin\\gmake" -k all Building file: "C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/atan_f64/fastrts_atan.c" Invoking: C2000 Compiler "C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --float_support=fpu64 --include_path="C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" --include_path="C: /ti/c2000/C2000Ware_5_01_00_00/device_support/f2838x/common/include" --include_path="C:/ti/c2000/C2000Ware_5_01_00_00/driverlib/f2838x/driverlib/" --include_path="C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/common/f2838x/" --include_path="C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/common/" --include_path="C:/ ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/include" --advice:performance=all --define=RAM --define=USE_FID=0 --define=CPU1 -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi -k --asm_listing --c_src_interlist --preproc_with_compile --preproc_dependency="fastrts_atan.d_raw" --float_support=fpu64 "C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/atan_f64/fastrts_atan.c" >> Compilation failure subdir_rules.mk:9: recipe for target 'fastrts_atan.obj' failed "C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/include/fastrts.h", line 259: error #148: declaration is incompatible with "double atan(double)" (declared at line 374 of "C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include/math.h") "C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/include/fastrts.h", line 281: error #148: declaration is incompatible with "double atan2(double, double)" (declared at line 377 of "C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include/math.h") "C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/include/fastrts.h", line 302: error #148: declaration is incompatible with "double cos(double)" (declared at line 380 of "C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include/math.h") "C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/include/fastrts.h", line 376: error #148: declaration is incompatible with "double sin(double)" (declared at line 383 of "C:/ ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include/math.h") "C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/include/fastrts.h", line 403: error #148: declaration is incompatible with "double sqrt(double)" (declared at line 461 of "C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include/math.h") 5 errors detected in the compilation of "C:/ ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/atan_f64/fastrts_atan.c". gmake: *** [fastrts_atan.obj] Error 1 Building file: "C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/common/fastrts_error.asm" Invoking: C2000 Compiler "C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --float_support=fpu64 --include_path="C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" --include_path="C:/ ti/c2000/C2000Ware_5_01_00_00/device_support/f2838x/common/include" --include_path="C:/ti/c2000/C2000Ware_5_01_00_00/driverlib/f2838x/driverlib/" --include_path="C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/common/f2838x/" --include_path="C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/common/" --include_path="C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/include" --advice:performance=all --define=RAM --define=USE_FID=0 --define=CPU1 -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi -k --asm_listing --c_src_interlist --preproc_with_compile --preproc_dependency=" fastrts_error.d_raw" --float_support=fpu64 "C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/common/fastrts_error.asm" Finished building: "C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/common/fastrts_error.asm" Building file: "C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/common/fastrts_examples_main.c" Invoking: C2000 Compiler "C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --float_support=fpu64 --include_path="C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" --include_path="C:/ti/c2000/C2000Ware_5_01_00_00/device_support/f2838x/common/include" --include_path="C:/ti/c2000/C2000Ware_5_01_00_00/driverlib/f2838x/driverlib/" --include_path="C:/ ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/common/f2838x/" --include_path="C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/common/" --include_path="C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/include" --advice:performance=all --define=RAM --define=USE_FID=0 --define=CPU1 -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi -k --asm_listing --c_src_interlist --preproc_ with_compile --preproc_dependency="fastrts_examples_main.d_raw" --float_support=fpu64 "C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/common/fastrts_examples_main.c" Finished building: "C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/common/fastrts_examples_main.c" Building file: "C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/common/fastrts_ examples_setup.c" Invoking: C2000 Compiler "C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --float_support=fpu64 --include_path="C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" --include_path="C:/ti/c2000/C2000Ware_5_01_00_00/device_support/f2838x/common/include" --include_path="C:/ti/c2000/C2000Ware_5_01_00_00/driverlib/f2838x/driverlib/" --include_path="C: /ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/common/f2838x/" --include_path="C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/common/" --include_path="C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/include" --advice:performance=all --define=RAM --define=USE_FID=0 --define=CPU1 -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi -k --asm_listing --c_src_interlist --preproc_ with_compile --preproc_dependency="fastrts_examples_setup.d_raw" --float_support=fpu64 "C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/common/fastrts_examples_setup.c" Finished building: "C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/common/fastrts_examples_setup.c" Building file: "C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/atan_f64/golden.c" Invoking: C2000 Compiler "C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --float_support=fpu64 --include_path="C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" --include_path="C:/ti/c2000/C2000Ware_5_01_00_00/device_support/f2838x/common/include" --include_path="C:/ ti/c2000/C2000Ware_5_01_00_00/driverlib/f2838x/driverlib/" --include_path="C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/common/f2838x/" --include_path="C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/common/" --include_path="C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/include" --advice: performance=all --define=RAM --define=USE_FID=0 --define=CPU1 -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi -k --asm_listing --c_src_interlist --preproc_with_compile --preproc_dependency="golden.d_raw" --float_support=fpu64 "C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/atan_f64/golden.c" Finished building: "C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/atan_f64/golden.c" Building file: "C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/atan_f64/input.c" Invoking: C2000 Compiler "C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --float_support=fpu64 --include_path="C:/ ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" --include_path="C:/ti/c2000/C2000Ware_5_01_00_00/device_support/f2838x/common/include" --include_path="C:/ti/c2000/C2000Ware_5_01_00_00/driverlib/f2838x/driverlib/" --include_path="C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/common/f2838x/" --include_path="C:/ ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/common/" --include_path="C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/include" --advice:performance=all --define=RAM --define=USE_FID=0 --define=CPU1 -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi -k --asm_listing --c_src_interlist --preproc_with_compile --preproc_dependency="input.d_raw" --float_support=fpu64 "C: /ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/atan_f64/input.c" Finished building: "C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/atan_f64/input.c" gmake: Target 'all' not remade because of errors. **** Build Finished ****
如何解决?
此致、
本