neubejiita Posted May 3, 2012 I am trying to compile prboom+ 2.5.1.3 on Debian Testing x86_64, and I get this error. I am using SDL 1.3.0. make[3]: Entering directory `/home/neo/Downloads/prboom-plus-2.5.1.3/src' CC i_capture.o i_capture.c: In function 'I_CapturePrep': i_capture.c:534:3: warning: passing argument 2 of 'SDL_CreateThread' from incompatible pointer type [enabled by default] /usr/include/SDL/SDL_thread.h:145:1: note: expected 'const char *' but argument is of type 'struct pipeinfo_t *' i_capture.c:534:3: error: too few arguments to function 'SDL_CreateThread' /usr/include/SDL/SDL_thread.h:145:1: note: declared here i_capture.c:535:3: warning: passing argument 2 of 'SDL_CreateThread' from incompatible pointer type [enabled by default] /usr/include/SDL/SDL_thread.h:145:1: note: expected 'const char *' but argument is of type 'struct pipeinfo_t *' i_capture.c:535:3: error: too few arguments to function 'SDL_CreateThread' /usr/include/SDL/SDL_thread.h:145:1: note: declared here i_capture.c:538:3: warning: passing argument 2 of 'SDL_CreateThread' from incompatible pointer type [enabled by default] /usr/include/SDL/SDL_thread.h:145:1: note: expected 'const char *' but argument is of type 'struct pipeinfo_t *' i_capture.c:538:3: error: too few arguments to function 'SDL_CreateThread' /usr/include/SDL/SDL_thread.h:145:1: note: declared here i_capture.c:539:3: warning: passing argument 2 of 'SDL_CreateThread' from incompatible pointer type [enabled by default] /usr/include/SDL/SDL_thread.h:145:1: note: expected 'const char *' but argument is of type 'struct pipeinfo_t *' i_capture.c:539:3: error: too few arguments to function 'SDL_CreateThread' /usr/include/SDL/SDL_thread.h:145:1: note: declared here i_capture.c: In function 'I_CaptureFinish': i_capture.c:618:3: warning: passing argument 2 of 'SDL_CreateThread' from incompatible pointer type [enabled by default] /usr/include/SDL/SDL_thread.h:145:1: note: expected 'const char *' but argument is of type 'struct pipeinfo_t *' i_capture.c:618:3: error: too few arguments to function 'SDL_CreateThread' /usr/include/SDL/SDL_thread.h:145:1: note: declared here i_capture.c:619:3: warning: passing argument 2 of 'SDL_CreateThread' from incompatible pointer type [enabled by default] /usr/include/SDL/SDL_thread.h:145:1: note: expected 'const char *' but argument is of type 'struct pipeinfo_t *' i_capture.c:619:3: error: too few arguments to function 'SDL_CreateThread' /usr/include/SDL/SDL_thread.h:145:1: note: declared here make[3]: *** [i_capture.o] Error 1 make[3]: Leaving directory `/home/neo/Downloads/prboom-plus-2.5.1.3/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/neo/Downloads/prboom-plus-2.5.1.3/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/neo/Downloads/prboom-plus-2.5.1.3' make: *** [all] Error 2 [neo@deusexmachina]:~/Downloads/prboom-plus-2.5.1.3> 0 Share this post Link to post
entryway Posted May 3, 2012 SDL team added 3rd argument to SDL_CreateThread() for SDL 1.3 (thread name) Thanks. 0 Share this post Link to post