I am trying to include #include in my project which uses CLion but I am cannot use it directly. Is there any specific way to include pthread t
#include
Add -lpthread flag to the compilation, i.e:
gcc foo.c -lpthread
more info here: Why do you need '-lpthread'?