[AVR单片机] AVR编译出现这种错误

[复制链接]
1825|3
 楼主| hexin261234088 发表于 2013-9-18 17:52 | 显示全部楼层 |阅读模式
C:\Users\hexin\Desktop
编译最后make 出错,是什么原因呢make: *** [test.elf] Error 1
 楼主| hexin261234088 发表于 2013-9-18 17:53 | 显示全部楼层
Build started 18.9.2013 at 17:48:31
avr-gcc -mmcu=atmega128 -Wl,-Map=test.map test.o     -o test.elf
e:/winavr-20100110/bin/../lib/gcc/avr/4.3.3/../../../../avr/lib/avr51/crtm128.o: file not recognized: File format not recognized
make: *** [test.elf] Error 1
Build failed with 1 errors and 0 warnings...
刚图片挂了
huangxz 发表于 2013-9-18 23:07 | 显示全部楼层
有两个可能的原因:
1.avr-gcc 的路径设置有问题
2.makefile  有问题
 楼主| hexin261234088 发表于 2013-9-23 15:15 | 显示全部楼层
是makefie问题,程序中有数学公式,在makefile中链接数学库就OK了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

5

主题

19

帖子

1

粉丝
快速回复 在线客服 返回列表 返回顶部