Gast
#177693
hello I am a newbie in using winAVR. I was previously using IAR kickstart. The problem is that everytime I Make all it is not able to link to the main.elf file. The error is given as Linking: main.elf avr-gcc -mmcu=atmega128 -I. -g -O0 -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=main.o -std=gnu99 main.o --output main.elf -Wl,-Map=main.map,--cref -lm C:/WinAVR/bin/../lib/gcc/avr/3.4.1/../../../../avr/lib/avr5/crtm128.o(.i nit9+0x0): undefined reference to `main' make.exe: *** [main.elf] Error 1 Can anyone help me to make the necessary changes in the makefile to get my programing working. thanks in advance