I compile using:
gcc -o outfile infile.c -lpthread
and only undefined link pthread_init.
pthread_init
I tried using -pthreadinstead -lpthread, according to some suggestions on the Internet.
-pthread
-lpthread
I am including<pthread.h>
<pthread.h>
Any ideas?
Do not call pthread_init(). This is not necessary for Linux.
pthread_init()