TI的c2000Ware里面的例程编译从第一行开始就报错,
D:\ti\c2000\C2000Ware_3_01_00_00\libraries\communications\Ethercat\f2838x\examples\f2838x_cpu1_pdi_hal_test_app
后来重新新建工程,只有一个main函数,重新编译错误仍旧存在。
编译信息,
**** Build of configuration Debug for project dsp28388d ****
"D:\\ti\\ccs1011\\ccs\\utils\\bin\\gmake" -k -j 8 all -O
Building file: "../main.c"
Invoking: C2000 Compiler
"D:/ti/ccs1011/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla2 --float_support=fpu64 --idiv_support=idiv0 --tmu_support=tmu0 --include_path="D:/workspace_v10/dsp28388d" --include_path="D:/ti/ccs1011/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/include" -g --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --preproc_with_compile --preproc_dependency="main.d_raw" "../main.c"
>> Compilation failure
subdir_rules.mk:9: recipe for target 'main.obj' failed
"../main.c", line 1: warning #1-D: last line of file ends without a newline
"../main.c", line 1: error #7: unrecognized token
"../main.c", line 1: warning #78-D: this declaration has no storage class or type specifier
"../main.c", line 1: error #66: expected a ";"
"../main.c", line 1: error #10: "#" not expected here
"../main.c", line 1: error #7: unrecognized token
"../main.c", line 1: warning #1268-D: null (zero) character in input line ignored
"../main.c", line 1: warning #1268-D: null (zero) character in input line ignored
"../main.c", line 1: warning #1268-D: null (zero) character in input line ignored
"../main.c", line 1: warning #1268-D: null (zero) character in input line ignored
"../main.c", line 1: warning #1268-D: null (zero) character in input line ignored
"../main.c", line 1: error #7: unrecognized token
"../main.c", line 1: error #7: unrecognized token
"../main.c", line 1: error #7: unrecognized token
"../main.c", line 1: error #7: unrecognized token
"../main.c", line 1: error #7: unrecognized token
"../main.c", line 1: error #7: unrecognized token
"../main.c", line 1: error #7: unrecognized token
"../main.c", line 1: error #7: unrecognized token
"../main.c", line 1: error #7: unrecognized token
"../main.c", line 1: error #7: unrecognized token
"../main.c", line 1: error #7: unrecognized token
"../main.c", line 1: error #7: unrecognized token
16 errors detected in the compilation of "../main.c".
gmake: *** [main.obj] Error 1
gmake: Target 'all' not remade because of errors.
**** Build Finished ****