ICC編譯錯誤說明.doc_第1頁
ICC編譯錯誤說明.doc_第2頁
ICC編譯錯誤說明.doc_第3頁
ICC編譯錯誤說明.doc_第4頁
ICC編譯錯誤說明.doc_第5頁
已閱讀5頁,還剩8頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)

文檔簡介

以下是常一、正常編譯通過 C:iccbinimakew -f main.makiccavr -c -IC:iccinclude -e -DATMEGA -DATMega16 -l -g -Mavr_enhanced D:桌面實驗教程LED應(yīng)用霓虹燈main.ciccavr -o main -LC:icclib -g -ucrtatmega.o -bfunc_lit:0x54.0x4000 -dram_end:0x45f -bdata:0x60.0x45f -dhwstk_size:16 -beeprom:1.512 -fihx_coff -S2 main.lk -lcatmegaDevice 1% full.Done.復(fù)制代碼二、工程中未加入.C文件 C:iccbinimakew -f main.makiccavr -o main -LC:icclib -g -ucrtatmega.o -bfunc_lit:0x54.0x4000 -dram_end:0x45f -bdata:0x60.0x45f -dhwstk_size:16 -beeprom:1.512 -fihx_coff -S2 main.lk -lcatmegaunknown file type main.lk, passed to linker!ERROR unknown file type main.lkC:iccbinimakew.exe: Error code 1Done: there are error(s). Exit code: 1復(fù)制代碼解決辦法:將你的程序加入工程中,可以右鍵程序區(qū)ADD to project三、程序沒有后綴名,或者后綴名不正確 C:iccbinimakew -f main.makC:iccbinimakew.exe: main is up to dateDone.復(fù)制代碼這是一個很難理解的錯誤,它是由工程中的程序文件沒有后綴名造成的。解決辦法:將原有文件移出工程,將文件的后綴名改為.C,然后再加入工程中。四、沒有main函數(shù) C:iccbinimakew -f main.makiccavr -c -IC:iccinclude -e -DATMEGA -DATMega16 -l -g -Mavr_enhanced D:桌面實驗教程LED應(yīng)用霓虹燈main.ciccavr -o main -LC:icclib -g -ucrtatmega.o -bfunc_lit:0x54.0x4000 -dram_end:0x45f -bdata:0x60.0x45f -dhwstk_size:16 -beeprom:1.512 -fihx_coff -S2 main.lk -lcatmega!ERROR file crtatmega.o: undefined symbol _mainC:iccbinimakew.exe: Error code 1Done: there are error(s). Exit code: 1復(fù)制代碼解決辦法,編寫程序主函數(shù)MAIN。五、沒有選擇目標芯片出現(xiàn)如下錯誤 C:iccbinimakew -f main.makiccavr -c -IC:iccinclude -e -l -g -Wa-W D:桌面實驗教程LED應(yīng)用霓虹燈main.ciccavr -o main -LC:icclib -g -Wl-W -bfunc_lit:0.0x2000 -dram_end:0x25f -bdata:0x60.0x25f -dhwstk_size:16 -beeprom:1.512 -fihx_coff -S2 main.lk !E C:icclibcrtAVR.o(41): Code address 0 already contains a value!E C:icclibcrtAVR.o(41): Code address 0x1 already contains a valueC:iccbinimakew.exe: Error code 1Done: there are error(s). Exit code: 1復(fù)制代碼解決辦法:projectOptionstargetdevice configuration 選擇合適的芯片。六、缺少分號 C:iccbinimakew -f main.makiccavr -c -IC:iccinclude -e -DATMEGA -DATMega16 -l -g -Mavr_enhanced D:桌面實驗教程LED應(yīng)用霓虹燈main.c!E D:桌面實驗教程LED應(yīng)用霓虹燈main.c(52): unrecognized statement!E D:桌面實驗教程LED應(yīng)用霓虹燈main.c(53): syntax error; found expecting ;!E D:桌面實驗教程LED應(yīng)用霓虹燈main.c(53): syntax error; found end of input expecting C:iccbinimakew.exe: Error code 1C:iccbinimakew.exe: main.o removed.Done: there are error(s). Exit code: 1復(fù)制代碼上面的報告說明了第52行缺少一個分號,預(yù)期分號的地方出現(xiàn)了“”。解決方法,在52行末尾添加分號。類似的有:缺少的報錯 C:iccbinimakew -f main.makiccavr -c -IC:iccinclude -e -DATMEGA -DATMega16 -l -g -Mavr_enhanced D:桌面實驗教程LED應(yīng)用霓虹燈main.c!E D:桌面實驗教程LED應(yīng)用霓虹燈main.c(55): illegal statement termination!E D:桌面實驗教程LED應(yīng)用霓虹燈main.c(55): skipping void!W D:桌面實驗教程LED應(yīng)用霓虹燈main.c(55):warning calling function without prototype may cause errors!E D:桌面實驗教程LED應(yīng)用霓虹燈main.c(56): syntax error; found expecting ;!E D:桌面實驗教程LED應(yīng)用霓虹燈main.c(57): syntax error; found end of input expecting C:iccbinimakew.exe: Error code 1C:iccbinimakew.exe: main.o removed.Done: there are error(s). Exit code: 1復(fù)制代碼七:變量沒有定義 C:iccbinimakew -f main.makiccavr -c -IC:iccinclude -e -DATMEGA -DATMega16 -l -g -Mavr_enhanced D:桌面實驗教程LED應(yīng)用霓虹燈main.c!E D:桌面實驗教程LED應(yīng)用霓虹燈main.c(48): undeclared identifier iC:iccbinimakew.exe: Error code 1C:iccbinimakew.exe: main.o removed.Done: there are error(s). Exit code: 1復(fù)制代碼解決辦法:在程序開始前添加變量定義,比如unsigned char i;注意,定義變量要在函數(shù)的最前面進行,及在進行計算操作之前定義所有變量。八:超過編譯空間 D:iccbinimakew -f tex.mak iccavr -c -ID:iccinclude -e -DATMega48 -l -g -Wf-intenum -Mavr_enhanced_small F:avrtex1led.c iccavr -c -ID:iccinclude -e -DATMega48 -l -g -Wf-intenum -Mavr_enhanced_small F:avrtex1display.c iccavr -c -ID:iccinclude -e -DATMega48 -l -g -Wf-intenum -Mavr_enhanced_small F:avrtex1key.c iccavr -c -ID:iccinclude -e -DATMega48 -l -g -Wf-intenum -Mavr_enhanced_small F:avrtex1global.c iccavr -c -ID:iccinclude -e -DATMega48 -l -g -Wf-intenum -Mavr_enhanced_small F:avrtex1delay.c iccavr -o tex -LD:icclib -g -ucrtboot8k.o -bvector:0xe00.0x1000 -bfunc_lit:0xe34.0x1000 -dram_end:0x2ff -bdata:0x100.0x2ff -dhwstk_size:40 -beeprom:1.256 -fihx_coff -S0 tex.lk -lstudio -lfpavr want size 346 lo 3910 hi 4096 size 187 !E (37): area text not large enough D:iccbinimakew.exe: Error code 1 Done: there are error(s). Exit code: 1 復(fù)制代碼解決辦法:可以到壓縮下代碼,projectoptionscompiler,選擇Enable code compression或者只有優(yōu)化代碼了 !E touchpad.c(67): unrecognized statement!E touchpad.c(68): syntax error; found void expecting ;上一行缺少“;”號所致。!W touchpad.c(325):warning calling function without prototype may cause errors沒有在頭文件中添加調(diào)用的函數(shù)庫!E E:ICCAVRiccuser001main.c(100): undeclared identifier temp錯誤:變量temp未聲明!E D:iccavr6.31.AicclibcrtAVR.(41):Codeaddress 0 already contains a value !E D:iccavr6.31.AicclibcrtAVR.(41):Codeaddress 0x1 already contains a value 沒有選擇芯片型號。!E library(31) area text not large enough程序空間不夠。?!E _3Q0.AAA(0): area data not large enough 內(nèi)存不足C:/icc/include/iom8v.h(18): D:icc圓織機程序8.c(288): Macro redefinition of TWBR重復(fù)定義TWBRcalling function without prototype may cause errors沒有extern聲明!E lianxi.o(103): multiple define: _main main函數(shù)重復(fù)了,應(yīng)該只能有一個main.warning declaring a function without prototype may cause errors函數(shù)原型沒有聲明。你調(diào)用的某個函數(shù)沒有聲明。Ambiguous operators need parentheses 不明確的運算需要用括號括起 Ambiguous symbol xxx 不明確的符號 Argument list syntax error 參數(shù)表語法錯誤 Array bounds missing 丟失數(shù)組界限符 Array size toolarge 數(shù)組尺寸太大 Bad character in paramenters 參數(shù)中有不適當(dāng)?shù)淖址?Bad file name format in include directive 包含命令中文件名格式不正確 Bad ifdef directive synatax 編譯預(yù)處理ifdef有語法錯 Bad undef directive syntax 編譯預(yù)處理undef有語法錯 Bit field too large 位字段太長 Call of non-function 調(diào)用未定義的函數(shù) Call to function with no prototype 調(diào)用函數(shù)時沒有函數(shù)的說明 Cannot modify a const object 不允許修改常量對象 Case outside of switch 漏掉了case 語句 Case syntax error Case 語法錯誤 Code has no effect 代碼不可述不可能執(zhí)行到 Compound statement missing 分程序漏掉 Conflicting type modifiers 不明確的類型說明符 Constant expression required 要求常量表達式 Constant out of range in comparison 在比較中常量超出范圍 Conversion may lose significant digits 轉(zhuǎn)換時會丟失意義的數(shù)字 Conversion of near pointer not allowed 不允許轉(zhuǎn)換近指針 Could not find file xxx 找不到XXX文件 Declaration missing ; 說明缺少; 小飛一凡(490152151) 12:03:21很多人用它,學(xué)起來資源多. 圣心決(350310876) 12:03:26Declaration syntax error 說明中出現(xiàn)語法錯誤 Default outside of switch Default 出現(xiàn)在switch語句之外 Define directive needs an identifier 定義編譯預(yù)處理需要標識符 Division by zero 用零作除數(shù) Do statement must have while Do-while語句中缺少while部分 Enum syntax error 枚舉類型語法錯誤 Enumeration constant syntax error 枚舉常數(shù)語法錯誤 Error directive :xxx 錯誤的編譯預(yù)處理命令 Error writing output file 寫輸出文件錯誤 Expression syntax error 表達式語法錯誤 Extra parameter in call 調(diào)用時出現(xiàn)多余錯誤 File name too long 文件名太長 Function call missing ) 函數(shù)調(diào)用缺少右括號 Fuction definition out of place 函數(shù)定義位置錯誤 Fuction should return a value 函數(shù)必需返回一個值 Goto statement missing label Goto語句沒有標號 Hexadecimal or octal constant too large 16進制或8進制常數(shù)太大 Illegal character x 非法字符x Illegal initialization 非法的初始化 Illegal octal digit 非法的8進制數(shù)字 Illegal pointer subtraction 非法的指針相減 Illegal structure operation 非法的結(jié)構(gòu)體操作 Illegal use of floating point 非法的浮點運算 Illegal use of pointer 指針使用非法 Improper use of a typedefsymbol 類型定義符號使用不恰當(dāng) In-line assembly not allowed 不允許使用行間匯編 Incompatible storage class 存儲類別不相容 Incompatible type conversion 不相容的類型轉(zhuǎn)換 Incorrect number format 錯誤的數(shù)據(jù)格式 Incorrect use of default Default使用不當(dāng) Invalid indirection 無效的間接運算 Invalid pointer addition 指針相加無效 Irreducible expression tree 無法執(zhí)行的表達式運算 Lvalue required 需要邏輯值0或非0值 Macro argument syntax error 宏參數(shù)語法錯誤 Macro expansion too long 宏的擴展以后太長 Mismatched number of parameters in definition 定義中參數(shù)個數(shù)不匹配 Misplaced break 此處不應(yīng)出現(xiàn)break語句 Misplaced continue 此處不應(yīng)出現(xiàn)continue語句 Misplaced decimal point 此處不應(yīng)出現(xiàn)小數(shù)點 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 必須存儲定位的地址 No declaration for function xxx 沒有函數(shù)xxx的說明 No stack 缺少堆棧 No type information 沒有類型信息 Non-portable pointer assignment 不可移動的指針(地址常數(shù))賦值 Non-portable pointer comparison 不可移動的指針(地址常數(shù))比較 Non-portable pointer conversion 不可移動的指針(地址常數(shù))轉(zhuǎn)換 Not a valid expression format type 不合法的表達式格式 Not an allowed type 不允許使用的類型 Numeric constant too large 數(shù)值常太大 Out of memory 內(nèi)存不夠用 Parameter xxx is never used 能數(shù)xxx沒有用到 Pointer required on left side of - 符號-的左邊必須是指針 Possible use of xxx before definition 在定義之前就使用了xxx(警告) Possibly incorrect assignment 賦值可能不正確 Redeclaration of xxx 重復(fù)定義了xxx Redefinition of xxx is not identical xxx的兩次定義不一致 Register allocation failure 寄存器定址失敗 Repeat count needs an lvalue 重復(fù)計數(shù)需要邏輯值 Size of structure or array not known 結(jié)構(gòu)體或數(shù)給大小不確定 Statement missing ; 語句后缺少; Structure or union syntax error 結(jié)構(gòu)體或聯(lián)合體語法錯誤 Structure size too large 結(jié)構(gòu)體尺寸太大 Sub scripting missing 下標缺少右方括號 Superfluous & with function or array 函數(shù)或數(shù)組中有多余的& Suspicious pointer conversion 可疑的指針轉(zhuǎn)換 Symbol limit exceeded 符號超限 Too few parameters in call 函數(shù)調(diào)用時的實參少于函數(shù)的參數(shù)不 Too many default cases Default太多(switch語句中一個) Too many error or warning messages 錯誤或警告信息太多 Too many type in declaration 說明中類型太多 Too much auto memory in function 函數(shù)用到的局部存儲太多 Too much global data defined in file 文件中全局數(shù)據(jù)太多 Two consecutive dots 兩個連續(xù)的句點 Type mismatch in parameter xxx 參數(shù)xxx類型不匹配 Type mismatch in redeclaration of xx

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論