




免費(fèi)預(yù)覽已結(jié)束,剩余8頁(yè)可下載查看
下載本文檔
版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
以下是常一、正常編譯通過(guò) C:iccbinimakew -f main.makiccavr -c -IC:iccinclude -e -DATMEGA -DATMega16 -l -g -Mavr_enhanced D:桌面實(shí)驗(yàn)教程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三、程序沒(méi)有后綴名,或者后綴名不正確 C:iccbinimakew -f main.makC:iccbinimakew.exe: main is up to dateDone.復(fù)制代碼這是一個(gè)很難理解的錯(cuò)誤,它是由工程中的程序文件沒(méi)有后綴名造成的。解決辦法:將原有文件移出工程,將文件的后綴名改為.C,然后再加入工程中。四、沒(méi)有main函數(shù) C:iccbinimakew -f main.makiccavr -c -IC:iccinclude -e -DATMEGA -DATMega16 -l -g -Mavr_enhanced D:桌面實(shí)驗(yàn)教程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。五、沒(méi)有選擇目標(biāo)芯片出現(xiàn)如下錯(cuò)誤 C:iccbinimakew -f main.makiccavr -c -IC:iccinclude -e -l -g -Wa-W D:桌面實(shí)驗(yàn)教程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 選擇合適的芯片。六、缺少分號(hào) C:iccbinimakew -f main.makiccavr -c -IC:iccinclude -e -DATMEGA -DATMega16 -l -g -Mavr_enhanced D:桌面實(shí)驗(yàn)教程LED應(yīng)用霓虹燈main.c!E D:桌面實(shí)驗(yàn)教程LED應(yīng)用霓虹燈main.c(52): unrecognized statement!E D:桌面實(shí)驗(yàn)教程LED應(yīng)用霓虹燈main.c(53): syntax error; found expecting ;!E D:桌面實(shí)驗(yàn)教程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ù)制代碼上面的報(bào)告說(shuō)明了第52行缺少一個(gè)分號(hào),預(yù)期分號(hào)的地方出現(xiàn)了“”。解決方法,在52行末尾添加分號(hào)。類似的有:缺少的報(bào)錯(cuò) C:iccbinimakew -f main.makiccavr -c -IC:iccinclude -e -DATMEGA -DATMega16 -l -g -Mavr_enhanced D:桌面實(shí)驗(yàn)教程LED應(yīng)用霓虹燈main.c!E D:桌面實(shí)驗(yàn)教程LED應(yīng)用霓虹燈main.c(55): illegal statement termination!E D:桌面實(shí)驗(yàn)教程LED應(yīng)用霓虹燈main.c(55): skipping void!W D:桌面實(shí)驗(yàn)教程LED應(yīng)用霓虹燈main.c(55):warning calling function without prototype may cause errors!E D:桌面實(shí)驗(yàn)教程LED應(yīng)用霓虹燈main.c(56): syntax error; found expecting ;!E D:桌面實(shí)驗(yàn)教程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ù)制代碼七:變量沒(méi)有定義 C:iccbinimakew -f main.makiccavr -c -IC:iccinclude -e -DATMEGA -DATMega16 -l -g -Mavr_enhanced D:桌面實(shí)驗(yàn)教程LED應(yīng)用霓虹燈main.c!E D:桌面實(shí)驗(yàn)教程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ù)的最前面進(jìn)行,及在進(jìn)行計(jì)算操作之前定義所有變量。八:超過(guò)編譯空間 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 ;上一行缺少“;”號(hào)所致。!W touchpad.c(325):warning calling function without prototype may cause errors沒(méi)有在頭文件中添加調(diào)用的函數(shù)庫(kù)!E E:ICCAVRiccuser001main.c(100): undeclared identifier temp錯(cuò)誤:變量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 沒(méi)有選擇芯片型號(hào)。!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圓織機(jī)程序8.c(288): Macro redefinition of TWBR重復(fù)定義TWBRcalling function without prototype may cause errors沒(méi)有extern聲明!E lianxi.o(103): multiple define: _main main函數(shù)重復(fù)了,應(yīng)該只能有一個(gè)main.warning declaring a function without prototype may cause errors函數(shù)原型沒(méi)有聲明。你調(diào)用的某個(gè)函數(shù)沒(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ù)淖址?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ō)明缺少; 小飛一凡(490152151) 12:03:21很多人用它,學(xué)起來(lái)資源多. 圣心決(350310876) 12:03:26Declaration 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 xxx的兩次定義不一致 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 結(jié)構(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 xx
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 河南省周口市2025年八年級(jí)下學(xué)期語(yǔ)文期末試卷及答案
- 精準(zhǔn)醫(yī)療項(xiàng)目研發(fā)與成果轉(zhuǎn)化合作協(xié)議
- 媒體合作內(nèi)容保密補(bǔ)充協(xié)議
- 基因治療臨床試驗(yàn)數(shù)據(jù)管理與統(tǒng)計(jì)分析合同
- 新能源汽車充電樁項(xiàng)目智能充電技術(shù)與市場(chǎng)推廣協(xié)議
- 景區(qū)導(dǎo)游服務(wù)外包與旅游線路策劃合同
- 縱隔膿腫的臨床護(hù)理
- 工業(yè)氣體儲(chǔ)存罐區(qū)租賃與氣體回收利用合同
- 內(nèi)科護(hù)理個(gè)案分析與管理流程
- 抖音VR內(nèi)容合作投資與收益分成協(xié)議
- 基層應(yīng)急管理能力提升與建設(shè)
- 小學(xué)生脫口秀課件
- 混凝土配合比試驗(yàn)設(shè)計(jì)方案
- 抖音陪跑合同協(xié)議
- 高三尖子生、邊緣生輔導(dǎo)方案2
- 湖北省武漢市2025屆高中畢業(yè)生四月調(diào)研考試政治試題及答案(武漢四調(diào))
- 海鮮門店管理制度
- 消化內(nèi)鏡操作技術(shù)
- 數(shù)據(jù)清理與預(yù)處理試題及答案
- 安徽省C20教育聯(lián)盟2025年九年級(jí)英語(yǔ)中考“功夫”卷(一)
- T-CNFIA 208-2024 花膠干魚鰾標(biāo)準(zhǔn)
評(píng)論
0/150
提交評(píng)論