title: Simple pthread! C++
body: <p>I have no idea why this doesn't work</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;pthread.h&gt;
  using namespace std;
  
  void *print_message(){
  
      cout &lt;&lt; "Threading\n";
  }
  
  
  
  int main() {
  
      pthread_t t1;
  
      pthread_create(&amp;t1, NULL, &amp;print_message, NULL);
      cout &lt;&lt; "Hello";
  
      return 0;
  }
  </code></pre>
  
  <p>The error:</p>
  
  <blockquote>
    <p>[Description, Resource, Path, Location, Type] initializing argument 3
    of 'int pthread_create(pthread_t*, const pthread_attr_t*, void*
    (*)(void*), void*)' threading.cpp   threading/src   line 24 C/C++
    Problem</p>
  </blockquote>