笑。h 发表于 2013-6-2 13:58:25

编译时出现问题求解

> "make.exe" all

-------- begin --------
avr-gcc (WinAVR 20080610) 4.3.0
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Linking: main.elf
avr-gcc -mmcu=atmega128 -I. -gdwarf-2 -DF_CPU=8000000UL -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=main.o-std=gnu99 -Wundef -MMD -MP -MF .dep/main.elf.d main.o --output main.elf -Wl,-Map=main.map,--cref   -lm
c:/winavr-20080610/bin/../lib/gcc/avr/4.3.0/../../../../avr/lib/avr51/crtm128.o:(.init9+0x0): undefined reference to `main'
make.exe: *** Error 1

> Process Exit Code: 2
> Time Taken: 00:01

zhanghuhhhhh 发表于 2013-6-2 20:57:45

是不是超了。main中注释掉一些。
页: [1]
查看完整版本: 编译时出现问题求解