Compiling and Linking Multithread Programs

 

For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.

The Bounce.c program is introduced in Sample Multithread C Program.

Programs are compiled multithreaded by default.

To compile and link the multithread program Bounce.c from within the development environment

  1. On the File menu, click New, and then click Project.

  2. In the Project Types pane, click Win32.

  3. In the Templates pane, click Win32 Console Application, and then name the project.

  4. Add the file containing the C source code to the project.

  5. On the Build menu, build the project by clicking the Build command.

To compile and link the multithread program Bounce.c from the command line

  1. Compile and link the program:

    CL BOUNCE.C  
    
    

Multithreading with C and Win32

Show: