Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は以下を使用してコンパイルしています:
gcc -o outfile infile.c -lpthread
未定義の参照は。だけですpthread_init。
pthread_init
オンラインでのいくつかの提案に従って、-pthreadの代わりに使用してみました。-lpthread
-pthread
-lpthread
私は含まれています<pthread.h>
<pthread.h>
何か案は?
電話しないでくださいpthread_init()。Linuxでは必要ありません。
pthread_init()