新手入门
- 积分
- 15
- 金钱
- 15
- 注册时间
- 2019-9-9
- 在线时间
- 6 小时
|

楼主 |
发表于 2021-3-8 16:17:50
|
显示全部楼层
我把上图的.h文件添加后重新编译之后,错误变了一些,但是数量没减,也增加了许多警告如下
..\HARDWARE\SETMODE\Setting.c(12): warning: #167-D: argument of type "uint8_t *" is incompatible with parameter of type "char *__restrict__"
strcpy(value[0].Num_Temp, "0000000000");
..\HARDWARE\SETMODE\Setting.c(13): warning: #167-D: argument of type "uint8_t *" is incompatible with parameter of type "char *__restrict__"
strcpy(value[1].Num_Temp, "0000000000");
..\HARDWARE\SETMODE\Setting.c(14): warning: #167-D: argument of type "uint8_t *" is incompatible with parameter of type "char *__restrict__"
strcpy(value[2].Num_Temp, "0000000000");
..\HARDWARE\SETMODE\Setting.c(15): warning: #167-D: argument of type "uint8_t *" is incompatible with parameter of type "char *__restrict__"
strcpy(value[3].Num_Temp, "0000000000");
..\HARDWARE\SETMODE\Setting.c(16): warning: #167-D: argument of type "uint8_t *" is incompatible with parameter of type "char *__restrict__"
strcpy(value[0].name, "CH0:");
..\HARDWARE\SETMODE\Setting.c(17): warning: #167-D: argument of type "uint8_t *" is incompatible with parameter of type "char *__restrict__"
strcpy(value[1].name, "CH1:");
..\HARDWARE\SETMODE\Setting.c(18): warning: #167-D: argument of type "uint8_t *" is incompatible with parameter of type "char *__restrict__"
strcpy(value[2].name, "CH2:");
..\HARDWARE\SETMODE\Setting.c(19): warning: #167-D: argument of type "uint8_t *" is incompatible with parameter of type "char *__restrict__"
strcpy(value[3].name, "CH3:");
..\HARDWARE\SETMODE\Setting.c(37): warning: #167-D: argument of type "uint8_t *" is incompatible with parameter of type "char *__restrict__"
strcpy(value[
ine_max - 1].name, " Back ");
..\HARDWARE\SETMODE\Setting.c(46): warning: #167-D: argument of type "u8 *" is incompatible with parameter of type "char *__restrict__"
strcpy(SELECT_L, "1111");
..\HARDWARE\SETMODE\Setting.c(47): warning: #167-D: argument of type "u8 *" is incompatible with parameter of type "char *__restrict__"
strcpy(SELECT_S, "1111111111");
..\HARDWARE\SETMODE\Setting.c(79): warning: #167-D: argument of type "u8 *" is incompatible with parameter of type "char *__restrict__"
strcpy(SELECT_L, "1111");
..\HARDWARE\SETMODE\Setting.c(99): warning: #167-D: argument of type "u8 *" is incompatible with parameter of type "char *__restrict__"
strcpy(SELECT_L, "1111");
..\HARDWARE\SETMODE\Setting.c(44): warning: #177-D: variable "Set_Key" was declared but never referenced
u8 Set_Key, line = 1, OK = 0, SELECT_L[4], SELECT_S[10];
..\HARDWARE\SETMODE\Setting.c(44): warning: #177-D: variable "OK" was declared but never referenced
u8 Set_Key, line = 1, OK = 0, SELECT_L[4], SELECT_S[10];
..\HARDWARE\SETMODE\Setting.c: 15 warnings, 0 errors
compiling timer.c...
linking...
.\CE.axf: Error: L6218E: Undefined symbol MY_NVIC_PriorityGroup_Config (referred from main.o).
.\CE.axf: Error: L6218E: Undefined symbol Set_PointFre (referred from main.o).
.\CE.axf: Error: L6218E: Undefined symbol _return (referred from main.o).
.\CE.axf: Error: L6218E: Undefined symbol delay_init (referred from main.o).
.\CE.axf: Error: L6218E: Undefined symbol delay_ms (referred from main.o).
.\CE.axf: Error: L6218E: Undefined symbol SinAmp (referred from ad9959.o).
.\CE.axf: Error: L6218E: Undefined symbol SinFre (referred from ad9959.o).
.\CE.axf: Error: L6218E: Undefined symbol SinPhr (referred from ad9959.o).
.\CE.axf: Error: L6218E: Undefined symbol draw_circle_8 (referred from lcd.o).
.\CE.axf: Error: L6218E: Undefined symbol swap_int (referred from lcd.o).
.\CE.axf: Error: L6218E: Undefined symbol SweepFlag (referred from timer.o).
.\CE.axf: Error: L6218E: Undefined symbol SweepMaxFre (referred from timer.o).
.\CE.axf: Error: L6218E: Undefined symbol SweepMinFre (referred from timer.o).
.\CE.axf: Error: L6218E: Undefined symbol SweepStepFre (referred from timer.o).
.\CE.axf: Error: L6218E: Undefined symbol SweepTime (referred from timer.o).
Not enough information to list image symbols.
Not enough information to list load addresses in the image map.
Finished: 2 information, 0 warning and 15 error messages.
".\CE.axf" - 15 Error(s), 18 Warning(s).
定义变量的话是在相应文件中写上这样的嘛比如说extent MY_NVIC_PriorityGroup_Config
|
|