|
void * conversion problems
I really need some help here. I'm writing a program in c++ on a unix system, using the pthreads package. This here line:
pthread_create(&cars[i],NULL,Car, (void *) i);
is giving me the error:
invalid conversion from `void (*)(int)' to `void*(*)(void*)'
Now, I've done the same thing in another program, and it works just fine, but this won't work. I'm using g++ to compile. Can someone help me out?
|