I tried to run a demo that creates multiple threads using PThreads. But the IDE says the start_routine does not have a return value:
void *PrintHello(void *threadid)
{
long tid;
tid = (long)threadid;
printf("Hello World! It's me, thread #%ld!\n", tid);
pthread_exit(NULL);
}
I wonder if there is really an error, or I should adjust the settings of IDE (I am using VS2013).
Thanks!