[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Compilation fails because of SIGNAL redefinition
From: |
Przemek Urbanski |
Subject: |
Re: [avr-gcc-list] Compilation fails because of SIGNAL redefinition |
Date: |
Sat, 26 Nov 2005 11:53:39 +0000 |
That was it. I forgot to include signal.h
Thanks guys!
P
On Fri, 2005-11-25 at 03:07 +0000, address@hidden wrote:
> Quoting Przemek Urbanski <address@hidden>:
>
> > Hey,
> >
> > I have made changes to my code to make it look more like a program less
> > like a hack, and believe or not it fails to compile now :>
> >
> > when I execute
> > address@hidden robo_avr]$ avr-gcc -g -mmcu=atmega8535 -Wall -Wstrict-
> > prototypes -Os -I /usr/local/avr/avr/include -
> > I /usr/local/avr/avr/include/avr -I ./inc -c -o src/servo.o
> > src/servo.c
> >
> > [...]
> > src/servo.c:131: error: redefinition of 'SIGNAL'
> > src/servo.c:50: error: previous definition of 'SIGNAL' was here
>
> You're probably just forgetting to include interrupt.h.
>
> Add to the beggining of your program:
>
> #include <avr/interrupt.h>
>
> I hope this helps,
>
----------------------------------------------------------------------
Szukasz pracy? Szukamy pracownikow: projektanta serwisow, webmasterow,
specjalisty ds. badan, promotion managera, administratorow baz danych,
programistow Windows i wielu innych! >>> http://link.interia.pl/f18e6