Forum: Compiler & IDEs a small problem with makefile


von sofia (Gast)


Lesenswert?

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

von Jörg Wunsch (Gast)


Lesenswert?

This forum is supposed to be German language.  Better resort to the
international AVRfreaks.net forum.

It seems your main.c simply misses an implementation of main().

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.