Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » AVR-GCC
  • » [avr-gcc-list] Compilation fails because of SIGNAL redefinition [RSS Feed]

#1 Nov. 25, 2005 03:12:10

p.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[avr-gcc-list] Compilation fails because of SIGNAL redefinition


Quoting Przemek Urbanski <>: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
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 hereYou'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
AVR-GCC-list@nongnu.orghttp://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Offline

  • Root
  • » AVR-GCC
  • » [avr-gcc-list] Compilation fails because of SIGNAL redefinition [RSS Feed]

Board footer

Moderator control

Enjoy the 20th of January
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support