делаю:
pthread_t th1;
...
pthread_create(&th1,NULL,print_msg,NULL);
...
компилю g++ pth.cpp -o pth -lpthread
ошибка:
invalid conversion from 'void (*)(void*)' to 'void*(*)(void)'
где что крутить?
спасибо...
делаю:
pthread_t th1;
...
pthread_create(&th1,NULL,print_msg,NULL);
...
компилю g++ pth.cpp -o pth -lpthread
ошибка:
invalid conversion from 'void (*)(void*)' to 'void*(*)(void)'
где что крутить?
спасибо...
Ответ на:
Re: не создается тред
от anonymous