/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../lib/libgtest.a(gtest-all.cc.o): undefined reference to symbol 'pthread_key_delete@@GLIBC_2.2.5'
/lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
foreign/c/test/softc/CMakeFiles/foreign-softc-test.dir/build.make:335: recipe for target 'foreign/c/test/softc/foreign-softc-test' failed
make[2]: *** [foreign/c/test/softc/foreign-softc-test] Error 1
CMakeFiles/Makefile2:533: recipe for target 'foreign/c/test/softc/CMakeFiles/foreign-softc-test.dir/all' failed
make[1]: *** [foreign/c/test/softc/CMakeFiles/foreign-softc-test.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
Asked
Active
Viewed 1,839 times
2
-
2Possible duplicate of [undefined reference to symbol 'pthread\_key\_delete@@GLIBC\_2.2.5](http://stackoverflow.com/questions/25617839/undefined-reference-to-symbol-pthread-key-deleteglibc-2-2-5) – yugr Jan 31 '17 at 08:35
-
I do have a CMakeCache.txt but not a CMakelists.txt ? – Zahid Jan 31 '17 at 08:42
-
Possible duplicate of [Strange linking error: DSO missing from command line](https://stackoverflow.com/questions/19901934/strange-linking-error-dso-missing-from-command-line) – perror Jul 18 '17 at 16:43