Creating a Thread in Linux

I have been trying to link a program which uses pthread.h. I am told that I must link the pthread library (libpthread.so)... but I don't find the library on my PC when I use the command:

locate libpthread.so

The command:

su apt-get install libpthread.so

I can't find if it is included in glibc or any other ubuntu library file. I've been told to "just link it with -pthread", but without the library there's nothing to link to

I've spent several days researching this. I will appreciate some guidance
Last edited on
On my linux, libpthread.so is part of the package sys-libs/glibc-2.16.0 so, I imagine, it should be included in glibc on your system too.

try dpkg -S libpthread
Last edited on
Topic archived. No new replies allowed.