Hallo,

hast du ein Makefile? Wenn ja, ist es vermutlich fehlerhaft, wenn nein: wie rufst du GCC auf?
Ein einfacher Call D:\foo>avr-gcc -mmcu=atmega8 foo.c funktioniert problemlos - also folge doch bitte Google und fixe dein makefile ...

mfG
Markus