title: No matching function call to 'pthread_create'
body: <p>I'm using Xcode and C++ to make a simple game.
  The problem is the following code:</p>
  
  <pre><code>#include &lt;pthread.h&gt;
  
  void *draw(void *pt) {
      // ...
  }
  
  void *input(void *pt) {
      // ....
  }
  
  void Game::create_threads(void) {
      pthread_t draw_t, input_t;
      pthread_create(&amp;draw_t, NULL, &amp;Game::draw, NULL);   // Error
      pthread_create(&amp;input_t, NULL, &amp;Game::draw, NULL);  // Error
      // ...
  }
  </code></pre>
  
  <p>But Xcode gives me the error: "<code>No matching function call to 'pthread_create'</code>". I haven't an idea 'cause of I've included <code>pthread.h</code> already.</p>
  
  <p>What's wrong?</p>
  
  <p>Thanks!</p>