MDK编译报错

2019-08-17 11:01发布

在MDK4写的程序 在MDK5打开报错
Rebuild target 'Target 1'
compiling main.c...
main.c(92): warning: #223-D: function "timer_init" declared implicitly
timer_init(99,3599);//中断设定计数值,预分频值 20ms
main.c(73): warning: #177-D: variable "fontcnt" was declared but never referenced
u32 fontcnt;
main.c(74): warning: #177-D: variable "i" was declared but never referenced
u8 i,j;
main.c(74): warning: #177-D: variable "j" was declared but never referenced
u8 i,j;


函数已经申明了,头文件也调用了。
在MDK4写的程序 在MDK5打开报错
Rebuild target 'Target 1'
compiling main.c...
main.c(92): warning: #223-D: function "timer_init" declared implicitly
timer_init(99,3599);//中断设定计数值,预分频值 20ms
main.c(73): warning: #177-D: variable "fontcnt" was declared but never referenced
u32 fontcnt;
main.c(74): warning: #177-D: variable "i" was declared but never referenced
u8 i,j;
main.c(74): warning: #177-D: variable "j" was declared but never referenced
u8 i,j;


函数已经申明了,头文件也调用了。