when i try to run get an error saying: main.cpp:15: error: invalid conversion from `void*' to `void*(*)(void*). This is just to test to see that i can create a thread to simualte a producer/consumer threads.Code:#include <pthread.h>
#include <iostream>
using namespace std;
void myfunc()
{
cout<<"hello"<<endl;
}
int main()
{
pthread_t *thread1;
thread1 = (pthread_t*)calloc(1,sizeof(pthread_t));
pthread_create(thread1,NULL,(void *)(&myfunc),NULL);
return 0;
}