expected constructor, destructor, or type conversion before '(' token ISR(T...)

Hello,
Im having problems compiling the code of Timer1 lib. keep getting the next error: error: expected constructor, destructor, or type conversion before '(' token ISR(TIMER1_OVF_vect) I Know its some syntax error but cant find the problem. Im running on DUE.

thank you all.

Gabriel.

TimerOne.cpp (7.83 KB)

TimerOne.h (2.96 KB)

What do you mean "compiling the code of Timer1 lib"?

Can you show your code please?

Please use code tags.

Read this before posting a programming question

How to use this forum

I think the compiler is telling you it doesn't understand the ISR itself. Which is the way interrupt vectors are setup on the 328 etc.

A little Googling led me to think interrupts might work differently on the Due. In which case you might need a different library. I stumbled into this one: GitHub - ivanseidel/DueTimer: ⏳ Timer Library fully implemented for Arduino DUE

GabrielLevHar:
I`m running on DUE.

That library is for the AVR processors anyway (eg. Uno). You will need to find a different library.