Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C++ (http://www.go4expert.com/forums/cpp/)
-   -   C/C++ Setvect question (http://www.go4expert.com/forums/c-cpp-setvect-question-t21950/)

su817200 30Apr2010 12:01

C/C++ Setvect question
 
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 3May2010 12:07

Re: C/C++ Setvect question
 
What happens if you don't cast it, i.e.:
Code:

setvect(vect, isr);


All times are GMT +5.5. The time now is 06:25.