Hi,
im having trouble launching some threads under linux.
I get the following errors and i have no idea why!
g++ xSockSrv.cpp -o xSockSrv.o -lpthread
xSockSrv.cpp: In member function `bool xSockSrv::AcceptConnectionLoop(void
(*)(tagClient*), void (*)(tagClient*), void (*)(tagClient*, char*, long
unsigned int))':
xSockSrv.cpp:169: invalid conversion from `void*' to `void*(*)(void*)'
Code:
iResult = pthread_create(&m_ptAcceptID, NULL, (void *)&AcceptConnectionLoopThread, this);
Makefile lines:
xSockSrv.o: xSockSrv.cpp xSockSrv.h
g++ -c xSockSrv.cpp -o xSockSrv.o
Any suggestions are most welcome!
(I have included <pthread.h> and linked to pthread library).
im having trouble launching some threads under linux.
I get the following errors and i have no idea why!
g++ xSockSrv.cpp -o xSockSrv.o -lpthread
xSockSrv.cpp: In member function `bool xSockSrv::AcceptConnectionLoop(void
(*)(tagClient*), void (*)(tagClient*), void (*)(tagClient*, char*, long
unsigned int))':
xSockSrv.cpp:169: invalid conversion from `void*' to `void*(*)(void*)'
Code:
iResult = pthread_create(&m_ptAcceptID, NULL, (void *)&AcceptConnectionLoopThread, this);
Makefile lines:
xSockSrv.o: xSockSrv.cpp xSockSrv.h
g++ -c xSockSrv.cpp -o xSockSrv.o
Any suggestions are most welcome!
(I have included <pthread.h> and linked to pthread library).