佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

查看: 1639|回复: 0

關於 avr compile .elf error 的問題

[复制链接]
发表于 14-3-2011 02:02 AM | 显示全部楼层 |阅读模式
../LCDTest.c:6: warning: return type of 'main' is not 'int'
../test.c:40: warning: return type of 'main' is not 'int'
avr-gcc -mmcu=atmega8  LCDTest.o lcd.o test.o     -o LCDTest.elf
test.o: In function `main':
C:\Users\Terence\Desktop\AVR tutorial\LCD hex\lcd\Sample\default/../test.c:41: multiple definition of `main'
LCDTest.o:\Users\Terence\Desktop\AVR tutorial\LCD hex\lcd\Sample\default/../LCDTest.c:7: first defined here
make: *** [LCDTest.elf] Error 1
Build failed with 1 errors and 2 warnings...


我跟着online的教法,把 libm.a加進library裡,但是還是沒有解決~
我的是 avr studio 4.16.

謝謝
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

 

ADVERTISEMENT



ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 16-11-2025 05:02 AM , Processed in 0.104630 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表