Undefined reference to pthread_getspecific
Undefined reference to pthread_getspecific In the last two post1 post2 I tried to setup a working cross-compilation environment for Beaglebone. While I was trying out a test program, I noticed that I was not able to compile a program if I link it with gtest I was getting a linking error which was not able to find references to pthread_getspecific and pthread_setspecific. If you are encountering an undefined reference to pthread_getspecific error while linking your C++ program with the Google Test (gtest) library, it is likely that your program is not linking with the pthread library....