Creating thread (in C++)

I have the following
net= SDL_CreateThread(net_thread, “net”);
this works fine in C, but when I try to compile with g++, I got an error
about some invalid thing const void* to void*.
How can I solve that?–
Roger D. Vargas
Linux user #180787

  • No hay nada tan importante que no pueda ser olvidado *
    Alzheimer

cast the string “net” to a (void*)>

net= SDL_CreateThread(net_thread, (void*)“net”);

El s?b, 29-10-2005 a las 18:09, Brian Barrett escribi?:

cast the string “net” to a (void*)
net= SDL_CreateThread(net_thread, (void*)“net”);
Thanks a lot, that solved the problem.–
Roger D. Vargas
Linux user #180787
dsgp.blogspot.com

  • No hay nada tan importante que no pueda ser olvidado *
    Alzheimer