TI中文支持网
TI专业的中文技术问题搜集分享网站

程序编译过程出现这些错误,有点搞不明白

"../SRC/main.c", line 139: error #20: identifier "Ecap1Regs" is undefined
"../SRC/main.c", line 144: error #20: identifier "Ecap2Regs" is undefined
"../SRC/main.c", line 153: error #68: expected a "}"
"../SRC/main.c", line 254: error #20: identifier "ADC_SHCLK" is undefined
"../SRC/main.c", line 255: error #20: identifier "ADC_CKPS" is undefined

"../SRC/main.c", line 467: error #128: expected a statement
>> Compilation failure
"../SRC/main.c", line 484: error #128: expected a statement
"../SRC/main.c", line 500: error #171: expected a declaration

为什么寄存器的配置也会未定义?还有 expected a "}"、statement、declaration,这三个错误我觉得有点莫名其妙的…没有找到出错的地方

Yi Su1:

Description Resource Path Location Type#1965 cannot open source file "_lock.h" yvals.h /PWM_duli/INCLUDE line 706 C/C++ Problem

Description Resource Path Location Type#1965 cannot open source file "linkage.h" stdarg.h /PWM_duli/INCLUDE line 41 C/C++ Problem

同时还有这两个错误,是我定义头文件#include "math.h"产生的错误,这我也没弄明白。

希望得到各位大大的解答

"../SRC/main.c", line 139: error #20: identifier "Ecap1Regs" is undefined
"../SRC/main.c", line 144: error #20: identifier "Ecap2Regs" is undefined
"../SRC/main.c", line 153: error #68: expected a "}"
"../SRC/main.c", line 254: error #20: identifier "ADC_SHCLK" is undefined
"../SRC/main.c", line 255: error #20: identifier "ADC_CKPS" is undefined

"../SRC/main.c", line 467: error #128: expected a statement
>> Compilation failure
"../SRC/main.c", line 484: error #128: expected a statement
"../SRC/main.c", line 500: error #171: expected a declaration

为什么寄存器的配置也会未定义?还有 expected a "}"、statement、declaration,这三个错误我觉得有点莫名其妙的…没有找到出错的地方

Igor An:

回复 Yi Su1:

请查看一下include路径,应该是编译器没有找到.c文件中写的include的文件。

赞(0)
未经允许不得转载:TI中文支持网 » 程序编译过程出现这些错误,有点搞不明白
分享到: 更多 (0)