|Hi, I'm assembling a program with avr-gcc and I get the following message:
/usr/lib/gcc/avr/4.1.0/../../../../avr/lib/avr4/crtm8.o: In function `__bad_interrupt':
../../../../crt1/gcrt1.S:123: undefined reference to `main'
The command i'm using to assemble is:
avr-gcc -gstabs -mmcu=atmega8 -I/usr/avr/include/ mycode.S -o mycode.elf
I don't think it's anything to do with my code, it seems to be something to do with an external file (one that i've never even heard of or included!)
As you can probably tell i'm quite new to this! If anyone could help i'd be really greatful.
Oh, it's on ubuntu feisty (using only packages from the ubuntu repos) if that's any help.
Thanks in advance