So my questions is: Why do you need '-lpthread' at the end of a compiling command?
Why does this command work:
gcc -o name name.c -lpthread
but this won't:
gcc -o name name.c
I am using the pthread.h library in my c code.
I already looked online for some answers but didn't really find anything that answered it understandably