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....

May 7, 2023 · 2 min · Kalyan

Cross compile C++ project for beaglebone

Cross compiling a C++ project for Beaglebone I am thinking of getting into Embedded Linux, so I have ordered a Beaglebone. I don’t want to use Python to program it as I want to do some real-time processing with it. For that, I have to figure out how to compile C++ programs on the host PC instead of doing it on the Beaglebone as it has very little ram. Initially, I wanted to do the cross-compilation using QEMU but quickly gave up the idea as there is no out-of-the-box QEMU system for Beaglebone....

April 12, 2021 · 8 min · Kalyan