Estoy intentando crear un hilo que reciba información de red de manera ininterrumpida dentro de una clase. En mi clase tengo definido SDL_Thread *hilo, y éstas funciones:
int *juego::Net_recibir(void *p) {
while (finrec==0) {
SDLNet_TCP_Recv(csd, buffer, 8);
}
}
void juego::Net_crearThread() {
hilo=SDL_CreateThread(Net_recibir,NULL);
}
El error que me da al compilar es:
error C2664: 'SDL_CreateThread' : cannot convert parameter 1 from 'int *(void *)' to 'int (__cdecl *)(void *)'
None of the functions with this name in scope match the target type
no se que hago mal..si alguien puede ayudarme se lo agradeceré eternamente jejej