I have written a program that i compiled and ran under Linux. It worked correctly. I was then forced to port it to QNX.
I did and when i tried to compile it there (qnx with momentics) I got a cryptic error:
timer_t * timer = malloc(sizeof(timer_t)); <---- invalid conversion from 'void*' to 'timer_t*'
here i get another error of a (i guess) similar type:
static void signalor(int sig, siginfo_t *si, void *uc)
timer_t *tidptr;
tidptr = si->si_value.sival_ptr;<----- invalid conversion from 'void*' to 'timer_t*'
Does anyone know why i get this error? Or how to fix it?
thanks in advance.