View Single Post
Old 04-27-2004, 04:54 PM   #1 (permalink)
Lovecraft
Registered User
 
Join Date: Apr 2004
Posts: 3
Lovecraft is on a distinguished road
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?
Lovecraft is offline   Reply With Quote