If you want to use threads in your C program you must prepare your development environment.
In project properties select and modify as shown in the following pictures:
400 px