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?
Don't call pthread_init(). It's not necessary on Linux.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With