On Fri, Sep 20, 2019 at 01:42:21PM +0300, Vassilena Treneva wrote: > I am using the same versions of gcc-c++ and glibc (gcc-c++ 4.8.5 & glibc > 2.17) on RHEL7 and CENTOS7, but I get a compile time error ONLY on CENTOS7: > > /usr/bin/ld: CMakeFiles/GTest.Test.dir/gtest/gtest-all.cc.o: *undefined > reference to symbol 'pthread_key_delete@@GLIBC_2.2.5'* > //usr/lib64/libpthread.so.0: > *error adding symbols: DSO missing from command line* It says you should have -lpthread on your link command line. Do you? (Often this library is automatically linked to, but not always). Segher