加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

not in formal parameter list小问题造成的大麻烦,差点被吓到了

(2012-11-11 20:58:57)
标签:

杂谈

分类: program

之前我在函数声明出列出函数声明如下:

void Display_Normal();
void Display_Reset()
void Display_Year();
void Display_Month();
void Display_Day();
void Display_Week();
void Display_Hour();
void Display_Minute();
void Display_Second();

我一按BUILT TARGET:错误如下:这架势,吓死我了!最后还是慢慢找原因,原来是在函数声明

void Display_Reset()时漏了一个小小的“;”,改正之后就没有了!小错误,出大问题啊!

Build target 'Target 1'
assembling STARTUP.A51...
compiling clock.c...
CLOCK.C(47): error C132: 'Display_Year': not in formal parameter list
CLOCK.C(48): error C132: 'Display_Month': not in formal parameter list
CLOCK.C(49): error C132: 'Display_Day': not in formal parameter list
CLOCK.C(50): error C132: 'Display_Week': not in formal parameter list
CLOCK.C(51): error C132: 'Display_Hour': not in formal parameter list
CLOCK.C(52): error C132: 'Display_Minute': not in formal parameter list
CLOCK.C(53): error C132: 'Display_Second': not in formal parameter list
CLOCK.C(60): error C132: 'delay500ms': not in formal parameter list
CLOCK.C(60): error C141: syntax error near '{'
CLOCK.C(61): error C136: 'i': 'void' on variable
CLOCK.C(61): error C132: 'i': not in formal parameter list
CLOCK.C(61): error C136: 'j': 'void' on variable
CLOCK.C(61): error C132: 'j': not in formal parameter list
CLOCK.C(61): error C136: 'k': 'void' on variable
CLOCK.C(61): error C132: 'k': not in formal parameter list
CLOCK.C(62): error C141: syntax error near 'for'
CLOCK.C(62): error C141: syntax error near '=', expected ')'
CLOCK.C(62): error C129: missing ';' before '>'
Target not created

0

阅读 收藏 喜欢 打印举报/Report
后一篇:转义字符
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有