Prosty wątek! C ++

Nie mam pojęcia, dlaczego to nie działa

#include <iostream>
#include <pthread.h>
using namespace std;

void *print_message(){

    cout << "Threading\n";
}



int main() {

    pthread_t t1;

    pthread_create(&t1, NULL, &print_message, NULL);
    cout << "Hello";

    return 0;
}

Błąd:

[Opis, zasób, ścieżka, lokalizacja, typ] argument inicjujący 3 z 'int pthread_create (pthread_t *, const pthread_attr_t *, void * (*) (void *), void *)' threading.cpp threading / src line 24 C / Problem C ++

questionAnswers(6)

yourAnswerToTheQuestion