I am using AVR GCC and WinAVR. Whenever I compile my program I get the following message.
c:/winavr-20080407/bin/../lib/gcc/avr/4.3.0/../../../../avr/lib/avr4/crtm8.o:(.init9+0x0): undefined reference to `main'
make: *** [final_final.elf] Error 1
I have a main function in the program defined as follows
int main (void)
I've also tried defining main as
but I still get the same error. Does anybody know what could be causing this?