找回密碼
 立即注冊(cè)

QQ登錄

只需一步,快速開(kāi)始

搜索
查看: 5304|回復(fù): 6
收起左側(cè)

keil編譯中所有編譯的錯(cuò)誤信息

  [復(fù)制鏈接]
ID:829814 發(fā)表于 2020-10-14 18:00 | 顯示全部樓層 |閱讀模式

1."c" not an argument in function sum 該標(biāo)識(shí)符不是函數(shù)的參數(shù)  
2.array bounds missing ] in function main 缺少數(shù)組界限符 "]"  
3.Array size too large in function main 數(shù)組規(guī)模太大  
4.bad file name format in include directive 在包含指令中的文件名格式不正確.  
5.Call of non-function in function main 調(diào)用未經(jīng)過(guò)定義的函數(shù).  
6.cannot modify a const object in function main 對(duì)常量不能進(jìn)行修改.  
7.character constant too long in function main 字符常量太大  
8.constant expression required in funtion main 數(shù)組定義的時(shí)候,數(shù)組大小要求是常數(shù)  
9.compound statment missing } in function main 復(fù)合語(yǔ)句漏掉符號(hào) "{"  
10.declaration syntax error in function main 宣告語(yǔ)法錯(cuò)誤  
11.expression syntax in function main 表達(dá)式語(yǔ)法錯(cuò)誤  
12. extra parameter in call to sum in function 調(diào)用函數(shù)時(shí)使用了過(guò)多的參數(shù)  
13.illegal use of floating point in function main 浮點(diǎn)數(shù)的不合法使用  
14.illegal pionter subtraction in function main 不合法的指針相減  
15.invalid pointer addition in function main 無(wú)效的指針相加  
16.out of memory in function main 內(nèi)存不足  
17.statement missing ; in function main 語(yǔ)句后面漏掉分號(hào).  
警告報(bào)錯(cuò)  
1."k" is assigned a value which is never used 定義了一個(gè)變量,但程序從來(lái)沒(méi)用過(guò)  
2.possibiy incorrect assignment in function main 這樣的賦值可能不正確  
3. suspicious pointer conversion in function main 可疑的指針轉(zhuǎn)換  
4.code has no effect in funtion main 代碼對(duì)程序沒(méi)效果  
Ambiguous operators need parentheses:不明確的運(yùn)算需要用括號(hào)括起  
Ambiguous symbol 'xxx' :不明確的符號(hào)  
Argument list syntax error:參數(shù)表語(yǔ)法錯(cuò)誤  
Array bounds missing :丟失數(shù)組界限符  
Array size toolarge :數(shù)組尺寸太大  
Bad character in paramenters :參數(shù)中有不適當(dāng)?shù)淖址?nbsp; 
Bad file name format in include directive :包含命令中文件名格式不正確  
Bad ifdef directive synatax :編譯預(yù)處理ifdef有語(yǔ)法錯(cuò)  
Bad undef directive syntax :編譯預(yù)處理undef有語(yǔ)法錯(cuò)  
Bit field too large :位字段太長(zhǎng)  
Call of non-function :調(diào)用未定義的函數(shù)  
Call to function with no prototype :調(diào)用函數(shù)時(shí)沒(méi)有函數(shù)的說(shuō)明  
Cannot modify a const object :不允許修改常量對(duì)象  
Case outside of switch :漏掉了case 語(yǔ)句  
Case syntax error :Case 語(yǔ)法錯(cuò)誤  
Code has no effect :代碼不可述不可能執(zhí)行到  
Compound statement missing{ :分程序漏掉"{"  
Conflicting type modifiers :不明確的類型說(shuō)明符  
Constant expression required :要求常量表達(dá)式  
Constant out of range in comparison :在比較中常量超出范圍  
Conversion may lose significant digits :轉(zhuǎn)換時(shí)會(huì)丟失意義的數(shù)字  
Conversion of near pointer not allowed :不允許轉(zhuǎn)換近指針  
Could not find file 'xxx' :找不到XXX文件  
Declaration missing ; :說(shuō)明缺少";"  


Declaration syntax error :說(shuō)明中出現(xiàn)語(yǔ)法錯(cuò)誤  
Default outside of switch :Default 出現(xiàn)在switch語(yǔ)句之外  
Define directive needs an identifier :定義編譯預(yù)處理需要標(biāo)識(shí)符  
Division by zero :用零作除數(shù)  
Do statement must have while :Do-while語(yǔ)句中缺少while部分  
Enum syntax error :枚舉類型語(yǔ)法錯(cuò)誤  
Enumeration constant syntax error :枚舉常數(shù)語(yǔ)法錯(cuò)誤  
Error directive :xxx :錯(cuò)誤的編譯預(yù)處理命令  
Error writing output file :寫輸出文件錯(cuò)誤  
Expression syntax error :表達(dá)式語(yǔ)法錯(cuò)誤  
Extra parameter in call :調(diào)用時(shí)出現(xiàn)多余錯(cuò)誤  
File name too long :文件名太長(zhǎng)  
Function call missing ) :函數(shù)調(diào)用缺少右括號(hào)  
Fuction definition out of place :函數(shù)定義位置錯(cuò)誤  
Fuction should return a value :函數(shù)必需返回一個(gè)值  
Goto statement missing label :Goto語(yǔ)句沒(méi)有標(biāo)號(hào)  
Hexadecimal or octal constant too large :16進(jìn)制或8進(jìn)制常數(shù)太大  
Illegal character 'x' :非法字符x  
Illegal initialization :非法的初始化  
Illegal octal digit :非法的8進(jìn)制數(shù)字  
Illegal pointer subtraction :非法的指針相減  
Illegal structure operation :非法的結(jié)構(gòu)體操作  
Illegal use of floating point :非法的浮點(diǎn)運(yùn)算  
Illegal use of pointer :指針使用非法  
Improper use of a typedefsymbol :類型定義符號(hào)使用不恰當(dāng)  
In-line assembly not allowed :不允許使用行間匯編  
Incompatible storage class :存儲(chǔ)類別不相容  
Incompatible type conversion :不相容的類型轉(zhuǎn)換  
Incorrect number format :錯(cuò)誤的數(shù)據(jù)格式  
Incorrect use of default  
Default使用不當(dāng)  
Invalid indirection 無(wú)效的間接運(yùn)算  
Invalid pointer addition 指針相加無(wú)效  
Irreducible expression tree 無(wú)法執(zhí)行的表達(dá)式運(yùn)算  
Lvalue required 需要邏輯值0或非0值  
Macro argument syntax error 宏參數(shù)語(yǔ)法錯(cuò)誤  
Macro expansion too long 宏的擴(kuò)展以后太長(zhǎng)  
Mismatched number of parameters in definition 定義中參數(shù)個(gè)數(shù)不匹配  
Misplaced break 此處不應(yīng)出現(xiàn)break語(yǔ)句  
Misplaced continue 此處不應(yīng)出現(xiàn)continue語(yǔ)句  
Misplaced decimal point 此處不應(yīng)出現(xiàn)小數(shù)點(diǎn)  
Misplaced elif directive 不應(yīng)編譯預(yù)處理elif  
Misplaced else 此處不應(yīng)出現(xiàn)else  
Misplaced else directive 此處不應(yīng)出現(xiàn)編譯預(yù)處理else  
Misplaced endif directive 此處不應(yīng)出現(xiàn)編譯預(yù)處理endif  
Must be addressable 必須是可以編址的  
Must take address of memory location 必須存儲(chǔ)定位的地址  
No declaration for function 'xxx' 沒(méi)有函數(shù)xxx的說(shuō)明  
No stack 缺少堆棧  
No type information 沒(méi)有類型信息  
Non-portable pointer assignment 不可移動(dòng)的指針(地址常數(shù))賦值  
Non-portable pointer comparison 不可移動(dòng)的指針(地址常數(shù))比較  
Non-portable pointer conversion 不可移動(dòng)的指針(地址常數(shù))轉(zhuǎn)換  


Not a valid expression format type 不合法的表達(dá)式格式  
Not an allowed type 不允許使用的類型  
Numeric constant too large 數(shù)值常太大  
Out of memory 內(nèi)存不夠用  
Parameter 'xxx' is never used 能數(shù)xxx沒(méi)有用到  
Pointer required on left side of -> 符號(hào)->的左邊必須是指針  
Possible use of 'xxx' before definition 在定義之前就使用了xxx(警告)  
Possibly incorrect assignment 賦值可能不正確  
Redeclaration of 'xxx' 重復(fù)定義了xxx  
Redefinition of 'xxx' is not identical xx的兩次定義不一致  
Register allocation failure 寄存器定址失敗  
Repeat count needs an lvalue 重復(fù)計(jì)數(shù)需要邏輯值  
Size of structure or array not known 結(jié)構(gòu)體或數(shù)給大小不確定  
Statement missing ; 語(yǔ)句后缺少";"  
Structure or union syntax error X構(gòu)體或聯(lián)合體語(yǔ)法錯(cuò)誤  
Structure size too large 結(jié)構(gòu)體尺寸太大  
Sub scripting missing ] 下標(biāo)缺少右方括號(hào)  
Superfluous & with function or array 函數(shù)或數(shù)組中有多余的"&"  
Suspicious pointer conversion 可疑的指針轉(zhuǎn)換  
Symbol limit exceeded 符號(hào)超限  
Too few parameters in call 函數(shù)調(diào)用時(shí)的實(shí)參少于函數(shù)的參數(shù)不  
Too many default cases Default太多(switch語(yǔ)句中一個(gè))  
Too many error or warning messages 錯(cuò)誤或警告信息太多  
Too many type in declaration 說(shuō)明中類型太多  
Too much auto memory in function 函數(shù)用到的局部存儲(chǔ)太多  
Too much global data defined in file 文件中全局?jǐn)?shù)據(jù)太多  
Two consecutive dots 兩個(gè)連續(xù)的句點(diǎn)  
Type mismatch in parameter xxx 數(shù)xxx類型不匹配  
Type mismatch in redeclaration of 'xxx' xx重定義的類型不匹配  
Unable to create output file 'xxx' 無(wú)法建立輸出文件xxx  
Unable to open include file 'xxx' 無(wú)法打開(kāi)被包含的文件xxx  
Unable to open input file 'xxx' 無(wú)法打開(kāi)輸入文件xxx  
Undefined label 'xxx' 沒(méi)有定義的標(biāo)號(hào)xxx  
Undefined structure 'xxx' 沒(méi)有定義的結(jié)構(gòu)xxx  
Undefined symbol 'xxx' 沒(méi)有定義的符號(hào)xxx  
Unexpected end of file in comment started on line xxx  
從xxx行開(kāi)始的注解尚未結(jié)束文件不能結(jié)束  
Unexpected end of file in conditional started on line xxx 從xxx  
開(kāi)始的條件語(yǔ)句尚未結(jié)束文件不能結(jié)束  
Unknown assemble instruction 未知的匯編結(jié)構(gòu)  
Unknown option 未知的操作  
Unknown preprocessor directive: 'xxx' 不認(rèn)識(shí)的預(yù)處理命令xxx  
Unreachable code 無(wú)路可達(dá)的代碼  
Unterminated string or character constant 字符串缺少引號(hào)  
User break 用戶強(qiáng)行中斷了程序  
Void functions may not return a value Void類型的函數(shù)不應(yīng)有返回值  
Wrong number of arguments 調(diào)用函數(shù)的參數(shù)數(shù)目錯(cuò)  
'xxx' not an argument xxx不是參數(shù)  
'xxx' not part of structure xxx不是結(jié)構(gòu)體的一部分  
xxx statement missing ( xx語(yǔ)句缺少左括號(hào)  
xxx statement missing ) xxx語(yǔ)句缺少右括號(hào)  
xxx statement missing ; xxx缺少分號(hào)  
xxx' declared but never used 說(shuō)明了xxx但沒(méi)有使用  
xxx' is assigned a value which is never used 給xxx賦了值但未用過(guò)  

評(píng)分

參與人數(shù) 1黑幣 +50 收起 理由
admin + 50 共享資料的黑幣獎(jiǎng)勵(lì)!

查看全部評(píng)分

回復(fù)

使用道具 舉報(bào)

ID:592807 發(fā)表于 2020-10-15 08:34 | 顯示全部樓層
keil編程如果出錯(cuò),一般從第一個(gè)錯(cuò)誤開(kāi)始,從上往下,每解決一個(gè)錯(cuò)誤編譯一次。
1、這樣做能能加快效率。因?yàn)楹芏噱e(cuò)誤是因?yàn)榈谝粋(gè)錯(cuò)誤而引發(fā)下面一連串錯(cuò)誤。例如“int main(){”這里少一個(gè)大括號(hào),編譯后會(huì)顯示好幾個(gè)錯(cuò)誤,其實(shí)就只有一個(gè)錯(cuò)誤。
2、減少排查難度。改錯(cuò)過(guò)程中可能引進(jìn)更多的錯(cuò)誤,每改一次錯(cuò)誤。編譯一次,如果發(fā)現(xiàn)錯(cuò)誤數(shù)量增多,可以及時(shí)撤回。

另外貼主這個(gè)“所有的編譯錯(cuò)誤信息”,有點(diǎn)夸大,里面很多是警告信息,不是錯(cuò)誤信息,而且我見(jiàn)過(guò)一些不在你貼里面的錯(cuò)誤編譯信息。

評(píng)分

參與人數(shù) 1黑幣 +20 收起 理由
admin + 20 回帖助人的獎(jiǎng)勵(lì)!

查看全部評(píng)分

回復(fù)

使用道具 舉報(bào)

ID:624444 發(fā)表于 2020-10-16 16:59 | 顯示全部樓層
黃youhui 發(fā)表于 2020-10-15 08:34
keil編程如果出錯(cuò),一般從第一個(gè)錯(cuò)誤開(kāi)始,從上往下,每解決一個(gè)錯(cuò)誤編譯一次。
1、這樣做能能加快效率。 ...

簡(jiǎn)單明了,學(xué)習(xí)了
回復(fù)

使用道具 舉報(bào)

ID:414556 發(fā)表于 2020-10-16 19:30 | 顯示全部樓層
非常好的資料,雖然我都沒(méi)碰到過(guò).
回復(fù)

使用道具 舉報(bào)

ID:378732 發(fā)表于 2020-10-20 00:23 | 顯示全部樓層
怎么沒(méi)有100到200的呢?
回復(fù)

使用道具 舉報(bào)

ID:337139 發(fā)表于 2020-10-20 17:46 | 顯示全部樓層
比軟的全面,有些可能是一個(gè)問(wèn)題引發(fā)的幾個(gè)警告。
回復(fù)

使用道具 舉報(bào)

ID:106977 發(fā)表于 2020-10-25 17:11 | 顯示全部樓層
Keil的幫助文件的附錄中有所有錯(cuò)誤信息的名稱和解釋。
回復(fù)

使用道具 舉報(bào)

本版積分規(guī)則

手機(jī)版|小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術(shù)交流QQ群281945664

Powered by 單片機(jī)教程網(wǎng)

快速回復(fù) 返回頂部 返回列表