avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] simple program


From: Timothy Smith
Subject: Re: [avr-gcc-list] simple program
Date: Thu, 25 Aug 2005 19:19:14 +1000
User-agent: Mozilla Thunderbird 1.0.6 (X11/20050721)

Bernard Fouché wrote:

Timothy Smith wrote:


titan# avr-gcc led.c

In file included from led.c:2:
/usr/local/lib/gcc/avr/3.4.4/../../../../avr/include/avr/io.h:252:6:
warning: #warning "device type not defined"

The warning says it all: you must tell avr-gcc what device you use (-mmc=....) since ports,etc differ from one chip to the other. Have a look a the nice Makefile provided with Winavr (it works also on unix/linux),
you'll spare some time figuring how to compile correctly.

 Bernard


i was more concerned with this line led.c:6: error: `DDRD' undeclared (first use in this function). or will that be cleaned up by fixing the first warning?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]