Undefined Reference to `pthread_init' When Using -lpthread Flag:
gcc, linux, pthreads
Solution
Don't call `pthread_init()`. It's not necessary on Linux.
Problem
I'm compiling using: `gcc -o outfile infile.c -lpthread` and the only undefined reference is `pthread_init`. I have tried using `-pthread` instead of `-lpthread`, as per some suggestions online. I am including `<pthread.h>` Any ideas?