mstimer2, ISR problems

Hello all. I've just started using interrupts on the arduino. Downloaded MsTimer2 and tried the test program with these errors:

MsTimer2.cpp:145: error: expected constructor, destructor, or type conversion before '(' token
MsTimer2.cpp:145: error: expected `,' or `;' before '(' token
/home/matthew/work/reprogArduino/arduino-0012/hardware/cores/arduino/WInterrupts.c:86: error: redefinition of 'SIGNAL'

/home/matthew/work/reprogArduino/arduino-0012/hardware/cores/arduino/WInterrupts.c:81: error: previous definition of 'SIGNAL' was here

Any clues?

something to do with ISR...

#include <avr/interrupt.h>

//Timer2 overflow interrupt vector handler
ISR(TIMER2_OVF_vect) {
}

gives me

error: expected constructor, destructor, or type conversion before '(' token

any clue? I'm still stuck.

I'm now reinstalling avr-libc and gcc-avr

I can't use timers, interrupts, pwm, most external libraries!
helpp!!!

something to do with ISR..

I'm not so sure. Try Tools / Auto Format. It's handy for spotting extra ( or [.

thanks for the tip! Though I'm pretty sure the code is clean.

the libraries that aren't working (mstimer2) are causing failures even before I start editing code (see first post). The MsTimer2 library can't be compiled!

My problem was down to a broken arduino install. The headers for the micro and other libraries were missing or wrong.

After 8 hours of research, installation, deinstallation and trying again from scratch I gave up and used the download for windows, which worked fine (including all libraries).