I am using codeblocks 13.12 on linux and your code does not compile for me.
Thank you for replying but I have no idea why.
I copy pasted your code 100% and got these errors
Code:ThreadingTest/main.cpp|34|error: invalid conversion from ‘const void*’ to ‘void*’ [-fpermissive]| ThreadingTest/main.cpp|34|error: too many arguments to function ‘SDL_Thread* SDL_CreateThread(int (*)(void*), void*)’|