李奇越 wrote:
> hi all:
>       I'm a beginner of winavr,and not familar with makefile.When I
> try to build a new project and using avr-gcc to compiler the program,
> the error messages are as follows:
> /usr/local/avr/include/avr/io.h:225:6:warning:#warning "device type not 
> defined"
> /usr/local/avr/include/avr/interrupt.h:112:3:#error "No valid external 
> interrupt
> control register defined"

I'm new too but I think you need -mmcu=atmega128 on the gcc command line

> 
> Do I need to include some header files in my program?
> And can somebody mail me a sample project?
> Thanks

I used this makefile to get started and adapted a project to it:
http://www.mikrocontroller.net/attachment/29840/makefile



_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to