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

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

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


From: Przemek Urbanski
Subject: [avr-gcc-list] Compilation fails because of SIGNAL redefinition
Date: Thu, 24 Nov 2005 23:46:11 +0000

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


>From servo.c (which I am trying to compile)
line  131: SIGNAL(SIG_OUTPUT_COMPARE2) { ... }
line 50: SIGNAL(SIG_OVERFLOW2) { ... }

I would image, that SIGNAL macro/define will get preprocessed before
compilation starts, or do I have to pass some magic cflag to gcc?

I am using avr-gcc (GCC) 3.4.4 on Linux

P




----------------------------------------------------------------------
Kobiece strony... >>> http://kobieta.interia.pl/





reply via email to

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