QT如何调用pthread_create函数
QT里调用pthread_create(&pid, NULL, recv_data, "recv data");
recv_data函数里也是C代码,主要实现本地域套接字来实现进程间通信的东西。接收客户端传过来的数据包。
编译出现以下错误:
error: invalid conversion from ‘const void*’ to ‘void*’
main.cpp:112: error: initializing argument 4 of ‘int pthread_create(pthread_t*, const pthread_attr_t*, void* (*)(void*)
不知道是哪里的错,我想知道的是QT里如何用pthread_create起线程。有谁解答下,谢谢了。