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