In order to build and make an example run do the following. gcc -o program program.c -lpthread -Wall -Wextra ./program -d testfolder -n 2 or just run the buildnrun.sh