Я понятия не имею, почему это не работает.
#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;
}
Ошибка:
[Описание, ресурс, путь, местоположение, тип] аргумент инициализации 3 of 'int pthread_create (pthread_t *, const pthread_attr_t *, void * (*) (void *), void *) 'threading.cpp threading/src line 24 C/С++ Проблема