Threads in Windows

Hacker

Skilled
In Linux when you want to compile a program with threads the command is

gcc -lpthread filename.c

What is the alternative to gcc in Windows which can also compile programs with threads.
 
Which development environment are you using?

Windows does not have a native C/C++ compiler, so you must be using something like Visual Studio or some lesser known breed. If you are on VS, then there is no special thing you have to do to use threads, especially if you are using MFC. CWinThread will do everything for you.
 
Back
Top