Quoting Przemek Urbanski <[EMAIL PROTECTED]>:

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
[EMAIL PROTECTED] 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,

--
Paulo Marques


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



_______________________________________________
AVR-GCC-list mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to