|
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:
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?Timothy Smith wrote: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),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"you'll spare some time figuring how to compile correctly. Bernard
[Prev in Thread] | Current Thread | [Next in Thread] |