Compile Error : signal.h

MiniPOV4 and previous versions

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
valek
 
Posts: 2
Joined: Sat Oct 27, 2012 12:08 pm

Compile Error : signal.h

Post by valek »

Minipov3 code uses SIGNAL() which is obsolete
http://www.nongnu.org/avr-libc/user-man ... 3ffe9fb8ff

Here is a corrected version of the firmware: https://github.com/maditnerd/minipov3

Details

Warning message on Windows 7 / avr-gcc 4.3.3:

Code: Select all

c:/winavr-20100110/lib/gcc/../../avr/include/avr/signal.h:36:2: warning: #warnin
g "This header file is obsolete.  Use <avr/interrupt.h>."
digg.c:69: warning: pointer targets in initialization differ in signedness
Error message on lubuntu / avr-gcc 4.7.0 (in french sorry):

Code: Select all

minipov.c:77:9: error: tentative d'utilisation d'un "SIG_TIMER1_COMPA" corrompu
I removed #include <avr/signal.h>
Replace SIGNAL( SIG_TIMER1_COMPA ) with ISR( TIMER1_COMPA_vect )

I use this table to find the argument's name (vector)
http://www.nongnu.org/avr-libc/user-man ... rupts.html

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Compile Error : signal.h

Post by adafruit_support_rick »

Thanks for posting!

Locked
Please be positive and constructive with your questions and comments.

Return to “MiniPOV”