keil 的一個小錯誤 error C132: : not in formal parameter list

來源:互聯網
上載者:User

之前我在函式宣告出列出函式宣告如下:

 

 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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.