Also, on windows, only some toolchains actually have thread support at all (Win32 threads isn't supported, you need POSIX threading for MinGW, for example). A good compiler that does support threading is TDM-GCC (>= 4.8).
i try to use the header ptrhead.h for create many threads...but the linker reports me this:
undefined reference to `__imp_pthread_create'... how to fix it?