C/C++ Setvect question

su817200's Avatar, Join Date: Apr 2010
Newbie Member
Dear Friend,
I got the following build error while compiling the ->Could you please help

void PC_VectSet (INT8U vect, void (*isr)(void))
{
setvect(vect, (void interrupt (*)(void))isr); /*Error in this line*/
}

error C2059: syntax error : ')'

Rgds,
xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
What happens if you don't cast it, i.e.:
Code:
setvect(vect, isr);