I'm a beginning C++ programmer and I'm programming on a Linux machine.
I got this error:
cannot convert ‘void* (Network::*)(void*)’ to ‘void* (*)(void*)’ for argument ‘3’ to ‘int pthread_create(pthread_t*, const pthread_attr_t*, void* (*)(void*), void*)
It is comming from this line:
pthread_create(&thread_id,0,&Network::SocketHandler, (void*)csock );
The function I'm trying to call is:
void* Network::SocketHandler(void* lp)
I declared both functions in the header file as private.
Do any of you see what I'm doing wrong?