ICC编译错误说明

上传人:新** 文档编号:498225590 上传时间:2023-12-05 格式:DOC 页数:13 大小:63KB
返回 下载 相关 举报
ICC编译错误说明_第1页
第1页 / 共13页
ICC编译错误说明_第2页
第2页 / 共13页
ICC编译错误说明_第3页
第3页 / 共13页
ICC编译错误说明_第4页
第4页 / 共13页
ICC编译错误说明_第5页
第5页 / 共13页
点击查看更多>>
资源描述

《ICC编译错误说明》由会员分享,可在线阅读,更多相关《ICC编译错误说明(13页珍藏版)》请在金锄头文库上搜索。

1、以下是常一、正常编译通过 C:iccbinimakew -f main.makiccavr -c -IC:iccinclude -e -DATMEGA -DATMega16 -l -g -Mavr_enhanced D:桌面实验教程LED应用霓虹灯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

2、1% full.Done.复制代码二、工程中未加入.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:iccb

3、inimakew.exe: Error code 1Done: there are error(s). Exit code: 1复制代码解决办法:将你的程序加入工程中,可以右键程序区ADD to project三、程序没有后缀名,或者后缀名不正确 C:iccbinimakew -f main.makC:iccbinimakew.exe: main is up to dateDone.复制代码这是一个很难理解的错误,它是由工程中的程序文件没有后缀名造成的。解决办法:将原有文件移出工程,将文件的后缀名改为.C,然后再加入工程中。四、没有main函数 C:iccbinimakew -f main.m

4、akiccavr -c -IC:iccinclude -e -DATMEGA -DATMega16 -l -g -Mavr_enhanced D:桌面实验教程LED应用霓虹灯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 _m

5、ainC:iccbinimakew.exe: Error code 1Done: there are error(s). Exit code: 1复制代码解决办法,编写程序主函数MAIN。五、没有选择目标芯片出现如下错误 C:iccbinimakew -f main.makiccavr -c -IC:iccinclude -e -l -g -Wa-W D:桌面实验教程LED应用霓虹灯main.ciccavr -o main -LC:icclib -g -Wl-W -bfunc_lit:0.0x2000 -dram_end:0x25f -bdata:0x60.0x25f -dhwstk_size

6、: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复制代码解决办法:projectOptionstargetdevice configuration 选择合适的芯片。

7、六、缺少分号 C:iccbinimakew -f main.makiccavr -c -IC:iccinclude -e -DATMEGA -DATMega16 -l -g -Mavr_enhanced D:桌面实验教程LED应用霓虹灯main.c!E D:桌面实验教程LED应用霓虹灯main.c(52): unrecognized statement!E D:桌面实验教程LED应用霓虹灯main.c(53): syntax error; found expecting ;!E D:桌面实验教程LED应用霓虹灯main.c(53): syntax error; found end of inp

8、ut expecting C:iccbinimakew.exe: Error code 1C:iccbinimakew.exe: main.o removed.Done: there are error(s). Exit code: 1复制代码上面的报告说明了第52行缺少一个分号,预期分号的地方出现了“”。解决方法,在52行末尾添加分号。类似的有:缺少的报错 C:iccbinimakew -f main.makiccavr -c -IC:iccinclude -e -DATMEGA -DATMega16 -l -g -Mavr_enhanced D:桌面实验教程LED应用霓虹灯main.c!E

9、 D:桌面实验教程LED应用霓虹灯main.c(55): illegal statement termination!E D:桌面实验教程LED应用霓虹灯main.c(55): skipping void!W D:桌面实验教程LED应用霓虹灯main.c(55):warning calling function without prototype may cause errors!E D:桌面实验教程LED应用霓虹灯main.c(56): syntax error; found expecting ;!E D:桌面实验教程LED应用霓虹灯main.c(57): syntax error; fo

10、und end of input expecting C:iccbinimakew.exe: Error code 1C:iccbinimakew.exe: main.o removed.Done: there are error(s). Exit code: 1复制代码七:变量没有定义 C:iccbinimakew -f main.makiccavr -c -IC:iccinclude -e -DATMEGA -DATMega16 -l -g -Mavr_enhanced D:桌面实验教程LED应用霓虹灯main.c!E D:桌面实验教程LED应用霓虹灯main.c(48): undecla

11、red identifier iC:iccbinimakew.exe: Error code 1C:iccbinimakew.exe: main.o removed.Done: there are error(s). Exit code: 1复制代码解决办法:在程序开始前添加变量定义,比如unsigned char i;注意,定义变量要在函数的最前面进行,及在进行计算操作之前定义所有变量。八:超过编译空间 D:iccbinimakew -f tex.mak iccavr -c -ID:iccinclude -e -DATMega48 -l -g -Wf-intenum -Mavr_enhanc

12、ed_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:avrtex

13、1global.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 wa

14、nt 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 复制代码解决办法:可以到压缩下代码,projectoptionscompiler,选择Enable code compression或者只有优化代码了 !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没有在头文件中添加调用的函数库!E E:ICCAVRiccuser001main.c(100): undeclared identifier temp错误:变量temp未声明!E D:iccavr6.31.AicclibcrtAVR.(41):Codea

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 幼儿/小学教育 > 小学课件

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号